diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 8d50fb2..dfb3bd2 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -14,7 +14,7 @@ jobs: - name: Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v2.1.0 + uses: dependabot/fetch-metadata@v2.2.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/CHANGELOG.md b/CHANGELOG.md index f0cb57f..177ed35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `filament-jetstream` will be documented in this file. +## 0.0.12 - 2024-06-20 + +- Fixed user profile URL bug + ## 0.0.11 - 2024-06-12 - Fixed Laravel 11 User model scaffold bug diff --git a/src/Commands/FilamentJetstreamCommand.php b/src/Commands/FilamentJetstreamCommand.php index e96f4bd..54d749f 100644 --- a/src/Commands/FilamentJetstreamCommand.php +++ b/src/Commands/FilamentJetstreamCommand.php @@ -26,7 +26,6 @@ public function handle(): int return self::FAILURE; } - $this->info('Installing Jetstream components started'); $this->call('jetstream:install', [ 'stack' => 'livewire', diff --git a/stubs/App/Providers/Filament/AppPanelProvider.php b/stubs/App/Providers/Filament/AppPanelProvider.php index d3df8fa..98b44ac 100644 --- a/stubs/App/Providers/Filament/AppPanelProvider.php +++ b/stubs/App/Providers/Filament/AppPanelProvider.php @@ -51,7 +51,7 @@ public function panel(Panel $panel): Panel MenuItem::make() ->label('Profile') ->icon('heroicon-o-user-circle') - ->url(fn() => $this->shouldRegisterMenuItem() + ->url(fn () => $this->shouldRegisterMenuItem() ? url(EditProfile::getUrl()) : url($panel->getPath())), ]) @@ -87,7 +87,7 @@ public function panel(Panel $panel): Panel MenuItem::make() ->label('API Tokens') ->icon('heroicon-o-key') - ->url(fn() => $this->shouldRegisterMenuItem() + ->url(fn () => $this->shouldRegisterMenuItem() ? url(ApiTokens::getUrl()) : url($panel->getPath())), ]); @@ -102,7 +102,7 @@ public function panel(Panel $panel): Panel MenuItem::make() ->label('Team Settings') ->icon('heroicon-o-cog-6-tooth') - ->url(fn() => $this->shouldRegisterMenuItem() + ->url(fn () => $this->shouldRegisterMenuItem() ? url(EditTeam::getUrl()) : url($panel->getPath())), ]);