1👍
Exclude api routes from the web route
Route::get('/{any}', 'SPAController@index')->where('any', '^(?!api).*$');
Hope this helps
0👍
I solved it. On vue it was supposed to be api/login
not /api/login
or api/login/
or something.
Source:stackexchange.com