Skip to content

Commit

Permalink
Fixed conflict with Laravel Debugbar
Browse files Browse the repository at this point in the history
  • Loading branch information
meletisf authored Aug 2, 2021
1 parent c4474bc commit 329f89e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Http/Controllers/EventsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ class EventsController
public function index(Request $request)
{
$events = Event::filter($request->query())
->get(['id', 'title', 'start', 'end'])
->toJson();
->get(['id', 'title', 'start', 'end']);

return response($events);
return response()->json($events);
}

public function store(Request $request)
Expand Down Expand Up @@ -73,4 +72,4 @@ public function destroy(Request $request, $eventId)

return response()->json(['error' => true]);
}
}
}

0 comments on commit 329f89e

Please sign in to comment.