I am using Auth::attempt($credentials, $rememberMe) for login user. It was working fine but suddenly it logout user during redirection. I have print Auth::user() before redirection, it is showing correct information but destroys after return::redirect.
Any help will highly appreciated.
Test if session data is working at all. Do
Session::put($key, $value)
and
Session::get($key)
from one request to another.
What's your session driver? If you are using the "file" driver (default driver), check perhaps if the /storage folder has the good rights...Try to change the whole folder rights to 775 using
chmod -R 775 /path/to/laravel/storage
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community