Skip to content

Commit 81ee9b9

Browse files
Moved Prompts Plugin to Moox/Plugins
1 parent b117b9b commit 81ee9b9

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
}

0 commit comments

Comments
 (0)