/** * @param $id int * @return Response */ public function show($id) { if (!$this->checkPermissions($id)) { return ['success' => false]; } try { return $this->repository->find($id); } catch (ModelNotFoundException $e) { return ['status' => false, 'message' => 'Não foi possível localizar o projeto']; } }
public function find($id) { return $this->repository->find($id); }