[Vuejs]-Vue-Laravel 500 (Internal Server Error) while posting

0👍

You can check that error by following this Chrome Inspect>>> Network >>> click on redlink >>> now check response You will get actual problem there.

If the problem/error is "Target class controller does not exist" this is the error from laravel as it doesn’t support traditional route declaration anymore so for that You can use:

 use App\Http\Controllers\PhonebookController;

 Route::get('/users', [PhonebookController::class, 'index']);
 // or
 Route::get('/users', 'App\Http\Controllers\PhonebookController@index');

Leave a comment