public function show($id) { try { return $this->repository->with(['owner', 'client'])->find($id); } catch (ModelNotFoundException $e) { return ['error' => true, 'message' => 'Projeto não encontrado.']; } }