This commit is contained in:
Francesco Picone
2026-07-26 00:08:55 +02:00
parent 69072b6f09
commit 561153c754
14 changed files with 127 additions and 62 deletions

View File

@@ -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