Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenjude committed Mar 2, 2024
1 parent 51791de commit 87c6122
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 21 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ You can remove the `--teams` and `--api` arguments if you don't want those featu

![Edit Team](art/api_token.png)

You can publish the config file with:

```bash
php artisan vendor:publish --tag="filament-jetstream-config"
```

## Testing

```bash
Expand Down
8 changes: 2 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
},
"autoload": {
"psr-4": {
"FilamentJetstream\\FilamentJetstream\\": "src/",
"FilamentJetstream\\FilamentJetstream\\Database\\Factories\\": "database/factories/"
"FilamentJetstream\\FilamentJetstream\\": "src/"
}
},
"autoload-dev": {
Expand All @@ -67,10 +66,7 @@
"laravel": {
"providers": [
"FilamentJetstream\\FilamentJetstream\\FilamentJetstreamServiceProvider"
],
"aliases": {
"FilamentJetstream": "FilamentJetstream\\FilamentJetstream\\Facades\\FilamentJetstream"
}
]
}
},
"minimum-stability": "dev",
Expand Down
10 changes: 3 additions & 7 deletions src/Commands/FilamentJetstreamCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,9 @@ protected function configurePanel()
->before('.php')->prepend("App\Providers\Filament")->append('::class,')->toString())
->each(fn($value) => $this->replaceInFile(search: $value, replace: '', path: config_path('app.php')));

$filesystem->copyDirectory(__DIR__.'/../../stubs/App/Providers/Filament', app_path('Providers/Filament'));
$filesystem->copyDirectory(__DIR__.'/../../stubs/App/Filament', app_path('Filament'));
$filesystem->copyDirectory(__DIR__.'/../../stubs/App/Listeners', app_path('Listeners'));
$filesystem->copyDirectory(
__DIR__.'/../../stubs/resources/views/filament/pages',
resource_path('views/filament/pages')
);
$filesystem->copyDirectory(__DIR__.'/../../stubs/App', app_path('/'));

$filesystem->copyDirectory(__DIR__.'/../../stubs/resources/views/filament', resource_path('views/filament'));

copy(__DIR__.'/../../stubs/routes/web.php', base_path('routes/web.php'));

Expand Down
2 changes: 1 addition & 1 deletion stubs/App/Filament/Pages/EditProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class EditProfile extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-user-circle';

protected static string $view = 'filament-jetstream::pages.edit-profile';
protected static string $view = 'filament.pages.edit-profile';

protected static ?string $navigationLabel = 'Profile';

Expand Down
2 changes: 1 addition & 1 deletion stubs/App/Filament/Pages/EditTeam.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Filament\Pages\Tenancy\EditTenantProfile;
class EditTeam extends EditTenantProfile
{
protected static string $view = 'filament-jetstream::pages.edit-team';
protected static string $view = 'filament.pages.edit-team';

protected static ?int $navigationSort = 2;

Expand Down

0 comments on commit 87c6122

Please sign in to comment.