fix attribut name

This commit is contained in:
2026-03-19 10:22:59 +01:00
parent 0e5d6a1270
commit 4ebb1ad6c0
4 changed files with 4 additions and 6 deletions
+1 -3
View File
@@ -68,9 +68,8 @@ class EventsController extends Controller
}
public function getEvents(Request $request): JsonResponse {
Log::info('ok');
try {
$events = Event::with('tasks')->get();
return response()->json(['data' => $events]);
@@ -132,7 +131,6 @@ class EventsController extends Controller
}
public function getEvent(Request $request, int $id): JsonResponse {
try {
$event = Event::find($id);