Laravel 5.2 And Ajax Failed To Load Resource: The Server Responded With A Status Of 500
Hi i m trying to make To do list application with laravel and ajax the probleme is if i tr to add,edit, delete a Task i get a Failed to load resource: the server responded with a
Solution 1:
the problem was with
Route::post('/tasks',function(Request $request){
$task = Task::create($request::all());
return Response::json($task);
});
Route::put('/tasks/{task_id?}',function(Request $request,$task_id){
$task = Task::find($task_id);
So i resolve the probleme by adding \Illuminate\Http\Request
as type of $request
Post a Comment for "Laravel 5.2 And Ajax Failed To Load Resource: The Server Responded With A Status Of 500"