J
J
Jedi2020-12-08 01:12:01
Laravel
Jedi, 2020-12-08 01:12:01

How to get user object in resources?

Guys, I ran into such a problem that I do not get access to the user through the Auth facade. There is no error, just null.

I'm trying to get access to the user according to the documentation, of course, and all this is the charm of the resource .

I attached sanctum to the project. The routes are on api.php.

Help solve the problem, please.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question