/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { if (!$this->service->checkProjectOwner($id)) { return $this->erroMsgm("O usuário não é owner desse projeto"); } $this->service->delete($id); return ['error' => false, 'Arquivo deletado com sucesso']; }