Answer the question
In order to leave comments, you need to log in
Why could laravel authorization fail?
It was necessary to rename the id field in the users table to user_id
Now the user does not pass the middleware check (for api on the laravel passport too)
I could do something like this:
Auth::attempt($data);
dd(Auth::user());
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question