Skip to content

Commit

Permalink
fix: get room types as full collection
Browse files Browse the repository at this point in the history
  • Loading branch information
caiquecastro committed May 26, 2024
1 parent a2ec01c commit 248e2ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/RoomsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
Expand Down Expand Up @@ -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'));
}
Expand Down

0 comments on commit 248e2ea

Please # to comment.