diff --git a/app/Http/Controllers/RoomsController.php b/app/Http/Controllers/RoomsController.php index 6655c15..944bb46 100644 --- a/app/Http/Controllers/RoomsController.php +++ b/app/Http/Controllers/RoomsController.php @@ -38,7 +38,7 @@ public function index(Request $request) public function create() { $features = Feature::all(); - $types = \App\Type::pluck('name', 'id'); + $types = \App\Type::all(); return view('rooms.create', compact('features', 'types')); } @@ -86,7 +86,7 @@ public function edit($id) { $room = Room::findOrFail($id); $features = Feature::all('name', 'id'); - $types = \App\Type::pluck('name', 'id'); + $types = \App\Type::all(); return view('rooms.edit', compact('room', 'features', 'types')); }