I'm using Laravel 5.4 with the pre-built auth library.
I would like to have a sweet alert (or popup) come up when a user sucessfully logins but I can't find where the logic is where the redirect to happens.
So:
User logins successfully
Gets forwarded to home controller (need to find this in the code and attach a flash message or something else?)
In my view detect if there's a flash message and make a if there's a flash message in memory so I can then query it with Javascript and show an alert box.
Edit:
I already have this set and it's fine:
use AuthenticatesUsers;
/**
* Where to redirect users after login.
*
* @var string
*/
protected $redirectTo = '/';
but I need to find where this is referenced? and add a flash message
Thanks
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kTgJqY
via IFTTT
Aucun commentaire:
Enregistrer un commentaire