Working with the default setup generated after running php artisan make:auth, I am now wondering how do I control the flash messages I need to show to a user when he logs in.
So far I have tried adding this code to the default AuthController:
public function authenticated($request, $user)
{
flash('Welcome back ' . $user->username . ', you have been logged in');
}
But this causes too many redirects error in my Chrome browser. How do I flash custom messages without creating a custom LoginController or overriding the complete login method inside AuthController?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire