From 5b621246306e5cb0b8707763899bb202dd3d5298 Mon Sep 17 00:00:00 2001 From: Endaman Stevy Date: Tue, 1 Apr 2025 18:29:20 +0200 Subject: [PATCH] feat: LAR-0192 update stub --- stubs/app-modules/app/Plugin.php | 6 +++--- stubs/app-modules/app/ServiceProvider.php | 8 ++++---- stubs/app-modules/composer-stub.json | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/stubs/app-modules/app/Plugin.php b/stubs/app-modules/app/Plugin.php index d48eece0..fbfda925 100644 --- a/stubs/app-modules/app/Plugin.php +++ b/stubs/app-modules/app/Plugin.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Laravelcm\StubComposerName; +namespace Laravelcm\StubClassNamePrefix; use Filament\Contracts\Plugin; use Filament\Panel; @@ -11,14 +11,14 @@ final class StubComposerNamePlugin implements Plugin { public function getId(): string { - return 'StubComposerName'; + return 'StubModuleName'; } public function register(Panel $panel): void { $panel->discoverResources( in: __DIR__.'/Filament/Resources', - for: 'Laravelcm\\StubComposerName\\Filament\\Resources' + for: 'Laravelcm\\StubClassNamePrefix\\Filament\\Resources' ); } diff --git a/stubs/app-modules/app/ServiceProvider.php b/stubs/app-modules/app/ServiceProvider.php index 46e032d4..19b3c8e3 100644 --- a/stubs/app-modules/app/ServiceProvider.php +++ b/stubs/app-modules/app/ServiceProvider.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Laravelcm\StubComposerName\Providers; +namespace Laravelcm\StubClassNamePrefix\Providers; use Filament\Panel; use Illuminate\Database\Eloquent\Relations\Relation; use Illuminate\Support\ServiceProvider; -use Laravelcm\StubComposerName\StubComposerNamePlugin; +use Laravelcm\StubClassNamePrefix\StubClassNamePrefixPlugin; -final class StubComposerNameServiceProvider extends ServiceProvider +final class StubClassNamePrefixServiceProvider extends ServiceProvider { public function register(): void { - Panel::configureUsing(fn (Panel $panel) => $panel->getId() !== 'admin' || $panel->plugin(new StubComposerNamePlugin)); + Panel::configureUsing(fn (Panel $panel) => $panel->getId() !== 'admin' || $panel->plugin(new StubClassNamePrefixPlugin)); } public function boot(): void diff --git a/stubs/app-modules/composer-stub.json b/stubs/app-modules/composer-stub.json index f907163f..906e86eb 100644 --- a/stubs/app-modules/composer-stub.json +++ b/stubs/app-modules/composer-stub.json @@ -1,5 +1,5 @@ { - "name": "laravel-cm/module-StubComposerName", + "name": "StubComposerName", "description": "Module StubComposerName for Laravel.cm", "type": "library", "version": "1.0", @@ -9,17 +9,17 @@ }, "autoload": { "psr-4": { - "Laravelcm\\StubComposerName\\": "src/", - "Laravelcm\\StubComposerName\\Tests\\": "tests/", - "Laravelcm\\StubComposerName\\Database\\Factories\\": "database/factories/", - "Laravelcm\\StubComposerName\\Database\\Seeders\\": "database/seeders/" + "Laravelcm\\StubClassNamePrefix\\": "src/", + "Laravelcm\\StubClassNamePrefix\\Tests\\": "tests/", + "Laravelcm\\StubClassNamePrefix\\Database\\Factories\\": "database/factories/", + "Laravelcm\\StubClassNamePrefix\\Database\\Seeders\\": "database/seeders/" } }, "minimum-stability": "stable", "extra": { "laravel": { "providers": [ - "Laravelcm\\StubComposerName\\Providers\\StubComposerNameServiceProvider" + "Laravelcm\\StubClassNamePrefix\\Providers\\StubClassNamePrefixServiceProvider" ] } }