We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a179d57 commit b2e6f7dCopy full SHA for b2e6f7d
src/Http/Controllers/ActiveTasksController.php
@@ -5,6 +5,7 @@
5
use Illuminate\Http\JsonResponse;
6
use Illuminate\Http\Request;
7
use Studio\Totem\Contracts\TaskInterface;
8
+use Studio\Totem\Task;
9
10
class ActiveTasksController extends Controller
11
{
@@ -39,12 +40,12 @@ public function store(Request $request): JsonResponse
39
40
/**
41
* Remove the specified resource from storage.
42
*
- * @param int $id
43
+ * @param Task $task
44
* @return JsonResponse
45
*/
- public function destroy(int $id): JsonResponse
46
+ public function destroy(Task $task): JsonResponse
47
- $task = $this->tasks->deactivate($id);
48
+ $task = $this->tasks->deactivate($task->id);
49
50
return response()->json($task, 200);
51
}
0 commit comments