Closed Jipem closed 5 years ago
I'm going to look into it. Give me a few minutes to setup a L6 project
There is something funny going on here.
auth()->user()
returns null
after I log in. That is why we are getting redirected to /login
and then back to where ever you were.
Update Got it. I forgot to add web
middleware. Going to publish a fix soon.
Fixed in 3.1.1
.
It works perfectly (with 3.1.1), thank you @mabasic :)
Hello,
I just added laravelista/comments 3.1.0 to my project based on Laravel 6. But after a long moment of research, whatever the action of comment (add, delete, update), the route /comments redirects to /login .
I did not modify the config file (and also tested with "guest_commenting" to true and false). My config Laravel is "basic". The migration has been launched. The "auth" middleware is working properly on the other controller / route.
In my App\Models\User I added:
In my App\Models\Profile I added:
In my Controller I have:
In my view file.blade.php I added:
An idea ? Thank you in advance !