Skip to content

Commit 61cc439

Browse files
committed
feat: LAR-0192 update stub
1 parent fc00980 commit 61cc439

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

stubs/app-modules/app/Plugin.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Laravelcm\StubComposerName;
5+
namespace Laravelcm\StubClassNamePrefix;
66

77
use Filament\Contracts\Plugin;
88
use 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

stubs/app-modules/app/ServiceProvider.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
declare(strict_types=1);
44

5-
namespace Laravelcm\StubComposerName\Providers;
5+
namespace Laravelcm\StubClassNamePrefix\Providers;
66

77
use Filament\Panel;
88
use Illuminate\Database\Eloquent\Relations\Relation;
99
use 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

stubs/app-modules/composer-stub.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "laravel-cm/module-StubComposerName",
2+
"name": "StubComposerName",
33
"description": "Module StubComposerName for Laravel.cm",
44
"type": "library",
55
"version": "1.0",
@@ -9,17 +9,17 @@
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
}

0 commit comments

Comments
 (0)