File tree 3 files changed +13
-13
lines changed
3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- namespace Laravelcm \StubComposerName ;
5
+ namespace Laravelcm \StubClassNamePrefix ;
6
6
7
7
use Filament \Contracts \Plugin ;
8
8
use Filament \Panel ;
@@ -11,14 +11,14 @@ final class StubComposerNamePlugin implements Plugin
11
11
{
12
12
public function getId (): string
13
13
{
14
- return 'StubComposerName ' ;
14
+ return 'StubModuleName ' ;
15
15
}
16
16
17
17
public function register (Panel $ panel ): void
18
18
{
19
19
$ panel ->discoverResources (
20
20
in: __DIR__ .'/Filament/Resources ' ,
21
- for: 'Laravelcm \\StubComposerName \\Filament \\Resources '
21
+ for: 'Laravelcm \\StubClassNamePrefix \\Filament \\Resources '
22
22
);
23
23
}
24
24
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- namespace Laravelcm \StubComposerName \Providers ;
5
+ namespace Laravelcm \StubClassNamePrefix \Providers ;
6
6
7
7
use Filament \Panel ;
8
8
use Illuminate \Database \Eloquent \Relations \Relation ;
9
9
use Illuminate \Support \ServiceProvider ;
10
- use Laravelcm \StubComposerName \ StubComposerNamePlugin ;
10
+ use Laravelcm \StubClassNamePrefix \ StubClassNamePrefixPlugin ;
11
11
12
- final class StubComposerNameServiceProvider extends ServiceProvider
12
+ final class StubClassNamePrefixServiceProvider extends ServiceProvider
13
13
{
14
14
public function register (): void
15
15
{
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 ));
17
17
}
18
18
19
19
public function boot (): void
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " laravel-cm/module- StubComposerName" ,
2
+ "name" : " StubComposerName" ,
3
3
"description" : " Module StubComposerName for Laravel.cm" ,
4
4
"type" : " library" ,
5
5
"version" : " 1.0" ,
9
9
},
10
10
"autoload" : {
11
11
"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/"
16
16
}
17
17
},
18
18
"minimum-stability" : " stable" ,
19
19
"extra" : {
20
20
"laravel" : {
21
21
"providers" : [
22
- " Laravelcm\\ StubComposerName \\ Providers\\ StubComposerNameServiceProvider "
22
+ " Laravelcm\\ StubClassNamePrefix \\ Providers\\ StubClassNamePrefixServiceProvider "
23
23
]
24
24
}
25
25
}
You can’t perform that action at this time.
0 commit comments