/** * Update the specified resource in storage. * * @param Request $request * @param int $id * @return Response */ public function update(Request $request, $id) { if ($this->checkProjectOwner($id) == false) { return ['error' => 'Acesso Negado']; } return $this->service->update($request->all(), $id); }
/** * Update the specified resource in storage. * * @param Request $request * @param int $id * @return Response */ public function update(Request $request, $id) { return $this->service->update($request->all(), $id); }