rename model in singular
This commit is contained in:
1 parent
928d504b27
commit
922b4df8b5
21 files changed
+42
-47
No files matched your search
@@ -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()]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user