public function create()
 {
     $typeRooms = TypeRoom::All();
     $rooms = Room::All()->where('state_id', 5);
     $typePlan = TypePlan::All();
     return view('Rooms.create', ['typeRooms' => $typeRooms], ['rooms' => $rooms], ['typePlan' => $typePlan]);
 }
Exemplo n.º 2
0
 public function getAll()
 {
     return Room::All();
 }