/** * Obtiene una obra por su id * * @param $id * @return Obra */ public function getById($id) { return Obra::where('id_obra', $id)->firstOrFail(); }