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