-1👍
✅
When you get 500 error, Check the last file on storage/logs
directory and try to find the last error on this file, errors are in this format:
[date_time] [error_message] [stacktrace]
0👍
In your route specify the Controller function to execute like this
Route::apiResource('projet' ,'API\ProjetController@update');
Source:stackexchange.com