Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

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.

Comments