File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
packages/prompts/src/Moox/Plugins Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Moox \Prompts \Moox \Plugins ;
4+
5+ use Filament \Contracts \Plugin ;
6+ use Filament \Panel ;
7+ use Moox \Prompts \Filament \Pages \RunCommandPage ;
8+ use Moox \Prompts \Filament \Resources \CommandExecutionResource ;
9+
10+ class PromptsPlugin implements Plugin
11+ {
12+ public function getId (): string
13+ {
14+ return 'moox-prompts ' ;
15+ }
16+
17+ public function register (Panel $ panel ): void
18+ {
19+ $ panel
20+ ->pages ([
21+ RunCommandPage::class,
22+ ])
23+ ->resources ([
24+ CommandExecutionResource::class,
25+ ]);
26+ }
27+
28+ public function boot (Panel $ panel ): void
29+ {
30+ //
31+ }
32+
33+ public static function make (): static
34+ {
35+ return app (static ::class);
36+ }
37+
38+ public static function get (): static
39+ {
40+ return filament (app (static ::class)->getId ());
41+ }
42+ }
You can’t perform that action at this time.
0 commit comments