Set session data after authenticate user using default auth route in laravel 5.2
10,061
Finally I got answer from another question. Here i post the solution for who are looking this type of solution
https://stackoverflow.com/a/36491235/2738927
Author by
Md. Sahadat Hossain
profile for Md. Sahadat Hossain at Stack Overflow, Q&A for professional and enthusiast programmers http://stackoverflow.com/users/flair/2738927.png Careers 2.0 Profile
Updated on June 25, 2022Comments
-
Md. Sahadat Hossain almost 2 years
I am developing a project using laravel 5.2. I use default authentication in this project by running this command.
php artisan make:auth
Everything is working great. Now I want to put some data in session after authenticate the user. I can not find the place where I put my code to store data in session after authenticate the user. I googled but not found any solution.
-
Alexey Mezenin over 7 yearsThis is solution for 5.1, you're using 5.2
-
Md. Sahadat Hossain over 7 yearsIts working for me now. If I face any problem I will try with your solution
-
Alexey Mezenin over 7 yearsJust curious what exact version do you use? Because in 5.2.45 there is no
authenticated()
method. -
Md. Sahadat Hossain over 7 yearsMy laravel version is 5.2.41