Support the ongoing development of →
Authentication Laravel Session
Last updated 1 year ago.

/** 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

Last updated 3 years ago.

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 :)

Last updated 3 years ago.

Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.