rename model in singular

This commit is contained in:
2026-03-13 15:30:54 +01:00
parent 928d504b27
commit 922b4df8b5
21 changed files with 42 additions and 47 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ namespace App\Http\Controllers;
use App\Events\TaskParticipationCancelled;
use App\Events\VolunteerAssignedToTask;
use App\Events\VolunteerUnassignedFromTask;
use App\Models\Events;
use App\Models\Event;
use App\Models\Notification;
use App\Models\Task;
use App\Models\User;
@@ -24,7 +24,7 @@ class TasksController extends Controller
try {
$event = Events::find($request["event_id"]);
$event = Event::find($request["event_id"]);
$event->tasks()->create([
"name" => $request["name"],
@@ -112,7 +112,7 @@ class TasksController extends Controller
try {
$event = Events::find($id);
$event = Event::find($id);
return response()->json(['data' => $event->tasks()->get()]);