Support the ongoing development of Laravel.io →
Authentication Laravel Session
Last updated 1 month ago.
0

/** 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 2 years ago.
1

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 2 years ago.
0

Sign in to participate in this thread!

LoadForge

Your banner here too?

Moderators

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.

© 2022 Laravel.io - All rights reserved.