vendredi 21 décembre 2018

Laravel how to make a request to "api" with a connected "user"?

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.




Aucun commentaire:

Enregistrer un commentaire