/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id, $taskId) { if ($this->checkProjectPermissions($id) == false) { return ['error' => 'Access Forbidden']; } $this->service->destroy($taskId); }
/** * Remove the specified resource from storage. * * @param int $taskId * @return Response */ public function destroy($taskId) { return $this->service->destroy($taskId); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($project_id, $task_id) { return $this->service->destroy($project_id, $task_id); }