++ fix
This commit is contained in:
@@ -21,7 +21,7 @@ class Profile extends Component
|
||||
$this->email = $user->email;
|
||||
}
|
||||
|
||||
public function updateProfile(): void
|
||||
public function updateProfile()
|
||||
{
|
||||
$user = auth()->user();
|
||||
|
||||
@@ -36,6 +36,10 @@ class Profile extends Component
|
||||
]);
|
||||
|
||||
session()->flash('profile_success', 'Profilo aggiornato con successo.');
|
||||
|
||||
// Ricarica la pagina così header e card mostrano subito i nuovi dati
|
||||
// (l'header vive nel layout, fuori dal componente).
|
||||
return $this->redirect(route('profile'), navigate: true);
|
||||
}
|
||||
|
||||
public function updatePassword(): void
|
||||
|
||||
Reference in New Issue
Block a user