File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace Laravelcm \StubComposerName ;
5+ namespace Laravelcm \StubClassNamePrefix ;
66
77use Filament \Contracts \Plugin ;
88use Filament \Panel ;
@@ -11,14 +11,14 @@ final class StubComposerNamePlugin implements Plugin
1111{
1212 public function getId (): string
1313 {
14- return 'StubComposerName ' ;
14+ return 'StubModuleName ' ;
1515 }
1616
1717 public function register (Panel $ panel ): void
1818 {
1919 $ panel ->discoverResources (
2020 in: __DIR__ .'/Filament/Resources ' ,
21- for: 'Laravelcm \\StubComposerName \\Filament \\Resources '
21+ for: 'Laravelcm \\StubClassNamePrefix \\Filament \\Resources '
2222 );
2323 }
2424
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace Laravelcm \StubComposerName \Providers ;
5+ namespace Laravelcm \StubClassNamePrefix \Providers ;
66
77use Filament \Panel ;
88use Illuminate \Database \Eloquent \Relations \Relation ;
99use Illuminate \Support \ServiceProvider ;
10- use Laravelcm \StubComposerName \ StubComposerNamePlugin ;
10+ use Laravelcm \StubClassNamePrefix \ StubClassNamePrefixPlugin ;
1111
12- final class StubComposerNameServiceProvider extends ServiceProvider
12+ final class StubClassNamePrefixServiceProvider extends ServiceProvider
1313{
1414 public function register (): void
1515 {
16- Panel::configureUsing (fn (Panel $ panel ) => $ panel ->getId () !== 'admin ' || $ panel ->plugin (new StubComposerNamePlugin ));
16+ Panel::configureUsing (fn (Panel $ panel ) => $ panel ->getId () !== 'admin ' || $ panel ->plugin (new StubClassNamePrefixPlugin ));
1717 }
1818
1919 public function boot (): void
Original file line number Diff line number Diff line change 11{
2- "name" : " laravel-cm/module- StubComposerName" ,
2+ "name" : " StubComposerName" ,
33 "description" : " Module StubComposerName for Laravel.cm" ,
44 "type" : " library" ,
55 "version" : " 1.0" ,
99 },
1010 "autoload" : {
1111 "psr-4" : {
12- "Laravelcm\\ StubComposerName \\ " : " src/" ,
13- "Laravelcm\\ StubComposerName \\ Tests\\ " : " tests/" ,
14- "Laravelcm\\ StubComposerName \\ Database\\ Factories\\ " : " database/factories/" ,
15- "Laravelcm\\ StubComposerName \\ Database\\ Seeders\\ " : " database/seeders/"
12+ "Laravelcm\\ StubClassNamePrefix \\ " : " src/" ,
13+ "Laravelcm\\ StubClassNamePrefix \\ Tests\\ " : " tests/" ,
14+ "Laravelcm\\ StubClassNamePrefix \\ Database\\ Factories\\ " : " database/factories/" ,
15+ "Laravelcm\\ StubClassNamePrefix \\ Database\\ Seeders\\ " : " database/seeders/"
1616 }
1717 },
1818 "minimum-stability" : " stable" ,
1919 "extra" : {
2020 "laravel" : {
2121 "providers" : [
22- " Laravelcm\\ StubComposerName \\ Providers\\ StubComposerNameServiceProvider "
22+ " Laravelcm\\ StubClassNamePrefix \\ Providers\\ StubClassNamePrefixServiceProvider "
2323 ]
2424 }
2525 }
You can’t perform that action at this time.
0 commit comments