diff --git a/composer.json b/composer.json index 2b6049b..4346f94 100644 --- a/composer.json +++ b/composer.json @@ -16,9 +16,9 @@ ], "require": { "php": "^7.4|^8.0", - "tipoff/authorization": "^2.8.6", - "tipoff/locations": "^2.14.0", - "tipoff/support": "^2.1.6" + "tipoff/authorization": "^2.10.0", + "tipoff/locations": "^2.14.1", + "tipoff/support": "^2.2.0" }, "require-dev": { "tipoff/test-support": "^2.0.1" diff --git a/src/Http/Controllers/Web/WaiverController.php b/src/Http/Controllers/Web/WaiverController.php index 9f503c0..3670529 100644 --- a/src/Http/Controllers/Web/WaiverController.php +++ b/src/Http/Controllers/Web/WaiverController.php @@ -7,7 +7,6 @@ use Carbon\Carbon; use Illuminate\Http\Request; use Illuminate\Routing\Controller; -use Tipoff\EscapeRoom\Models\Room; use Tipoff\Locations\Models\Location; use Tipoff\Waivers\Events\WaiverSigned; use Tipoff\Waivers\Models\Signature; @@ -25,7 +24,7 @@ public function index() public function show(Location $location) { - $rooms = Room::where('location_id', $location->id)->get(); + $rooms = $location->rooms()->get(); return view('waiver.show', [ 'location' => $location,