Update EditProfile.php (#454)

This commit is contained in:
MartinOscar 2024-07-02 13:05:00 +02:00 committed by GitHub
parent 0f8c27a297
commit c464b321dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -215,7 +215,7 @@ class EditProfile extends \Filament\Pages\Auth\EditProfile
Action::make('Create')
->disabled(fn (Get $get) => $get('description') === null)
->successRedirectUrl(route('filament.admin.auth.profile', ['tab' => '-api-keys-tab']))
->action(function (Get $get, Action $action, $user) {
->action(function (Get $get, Action $action, User $user) {
$token = $user->createToken(
$get('description'),
$get('allowed_ips'),