コード例 #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id, $taskId)
 {
     if ($this->checkProjectPermissions($id) == false) {
         return ['error' => 'Acesso Negado'];
     }
     return $this->repository->findWhere(['project_id' => $id, 'id' => $taskId]);
 }
コード例 #2
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id, $taskId)
 {
     return $this->repository->findWhere(['project_id' => $id, 'id' => $taskId]);
 }