/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id, $taskId) { $projectTask = $this->repository->skipPresenter()->find($id); $projectId = $projectTask->project_id; if (!$this->checkProjectTaskPermissions($projectId)) { return ['error' => 'Access Forbidden']; } return $this->service->delete($taskId); }
public function delete() { if (ProjectService::delete(Request::get('id'))) { MessageHandler::instance()->addMessage('Deleted project'); $this->asJson(true); } else { MessageHandler::instance()->addError('Could not delete project'); $this->asJson(false); } }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id, $projectMemberId) { $this->service->delete($projectMemberId); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id, $fileId) { $this->service->delete($fileId); }