I had exactly the same error, and I tried all types of solutions: nginx, filtering, spaces at the end of files.
After a few hours, I decided to look for spaces at the end of the files again, and it was like this: right after Auth :: try, I set up a session variable using a model that had a line break after? >
This led to Laravel displaying a βRedirect to ...β message and, as shown, the session was lost, so the user was not logged in.
It was a server error, on my Localhost it always worked fine with spaces.
Hope this helps
ecairol
source share