mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Update 03-user-menu.md
This commit is contained in:
@@ -19,7 +19,7 @@ public function panel(Panel $panel): Panel
|
||||
return $panel
|
||||
// ...
|
||||
->userMenuItems([
|
||||
Action::make('navigateToSettings')
|
||||
Action::make('settings')
|
||||
->label('Settings')
|
||||
->url(fn (): string => Settings::getUrl())
|
||||
->icon('heroicon-o-cog-6-tooth'),
|
||||
@@ -91,8 +91,7 @@ You can send a `POST` HTTP request from a user menu item by passing a URL to the
|
||||
```php
|
||||
use Filament\Actions\Action;
|
||||
|
||||
Action::make()
|
||||
->label('Lock session')
|
||||
Action::make('lockSession')
|
||||
->url(fn (): string => route('lock-session'))
|
||||
->postToUrl()
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user