public function all() { try { return $this->repository->all(); } catch (\Exception $e) { return ["error" => true, "message" => 'Nenhum registro encontrado.', "messageDev" => $e->getMessage()]; } }
public function index() { return $this->repository->all(); }