/** use AuthenticatesUsers { redirectPath as laravelRedirectPath; };
**/
public function redirectPath() { // Do your logic to flash data to session... session()->flash('message', 'your message');
// Return the results of the method we are overriding that we aliased.
return $this->laravelRedirectPath();
}
You can also use event listen to show an alert when user logs in too
axel-amghar liked this reply
Thanks a lot for the reply,
For people who want a solution that work for me, ( I used the second solution of Mr. @Ogundimu ). So i used event listen for login.
Right here the full simple tutoriel to add message alert when login with event listen in laravel
If you want to know more about listen event there is the laravel doc for it :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community