#I m using Laravel + React Inertia Starter Kit
6 messages · Page 1 of 1 (latest)
Read about spa authentication in laravel docs, you gotta send token with the request so the user can be resolved, also are you using sanctum?
I know about auth:sanctum and token way
You Mean if we create routes in web.php then Inertia handle
example:
$save->user_id = auth()->id()
But you cant just call an API without the credentials in request, read the documentation, it doesnt have to be token auth but cookie
If you create them there then those are Inertia responses (you are using inertia)