-
Hi, I'm circling around strange issue from yesterday, it must be something small that I missed. I'm upgrading project from Laravel 7, I went step by step and I'm having problem with Ajax calls, Laravel's gate "can" always returning false. What am I missing? I have also similar project in L8 and it works without problem, I went line by line comparing and can't find difference ... Laravel version: v8.83.26 In normal "web" guard works.
This call will return:
Thank you in advance for your time! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, digging deeper and checking line by line with another project I figure it out. 🤦♂️ Inside Sorry. |
Beta Was this translation helpful? Give feedback.
Hi, digging deeper and checking line by line with another project I figure it out. 🤦♂️
Inside
App\Models\User
model must beprotected $guard_name = 'web';
Sorry.
Wish you a nice day,
Klemen