Can you please tell me how in Laravel 5.6 you can check whether a user is authorized on the site when sending a request through the API? That is, you need before auth: api authorizes the user by token to check whether he is authorized on the site.
Can you please tell me how in Laravel 5.6 you can check whether a user is authorized on the site when sending a request through the API? That is, you need before auth: api authorizes the user by token to check whether he is authorized on the site.
Source: https://ru.stackoverflow.com/questions/849745/
All Articles
/api/**, where there is a group of web intermediaries. There you can find out the user by\Auth::user()- Maxim K