Support the ongoing development of Laravel.io →
Authentication Laravel Session
Last updated 2 years 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 3 years ago.

axel-amghar liked this reply

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

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.