Skip to content

feat: LAR-0192 update stub #349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions stubs/app-modules/app/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Laravelcm\StubComposerName;
namespace Laravelcm\StubClassNamePrefix;

use Filament\Contracts\Plugin;
use Filament\Panel;
Expand All @@ -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'
);
}

Expand Down
8 changes: 4 additions & 4 deletions stubs/app-modules/app/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions stubs/app-modules/composer-stub.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "laravel-cm/module-StubComposerName",
"name": "StubComposerName",
"description": "Module StubComposerName for Laravel.cm",
"type": "library",
"version": "1.0",
Expand All @@ -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"
]
}
}
Expand Down
Loading