loading...

re: Authenticating a Vue SPA is easy with Laravel Sanctum VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Happening the same to me :(
 

I solved it , in your Providers/RouteServiceProvider.php, change the mapApiRoutes function from middleware(['api']) to middleware(['web'])

protected function mapApiRoutes()
    {
        Route::prefix('api')
            ->middleware('web')
            ->namespace($this->namespace)
            ->group(base_path('routes/api.php'));
    }

Hope this helping you.

Great work, please i will like to have a little chat with u man

Code of Conduct Report abuse