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]);
 }
Example #2
0
 public function getAll()
 {
     return Room::All();
 }