I have a connected user with the laravel standard auth system.
I created an API route that need a authenticated user.
When I make a request in AJAX to this API, my user is not available. I tried Auth::user(), $request-user (from controller parameter).
I don't know how to "pass" the user to API.
Comments
Post a Comment