[Vuejs]-Get returned data after posting with axios (vue+ laravel)

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.

Leave a comment