From 6a8a41b3892a121cdbbc359fd8cdf70d7db0f3c1 Mon Sep 17 00:00:00 2001 From: Jesse Ostrander Date: Mon, 24 Feb 2025 17:34:18 -0500 Subject: [PATCH] fix: reference to item location on location edit method --- app/Http/Controllers/LocationsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/LocationsController.php b/app/Http/Controllers/LocationsController.php index 7cf44d604b..a018b8a68a 100755 --- a/app/Http/Controllers/LocationsController.php +++ b/app/Http/Controllers/LocationsController.php @@ -100,7 +100,7 @@ class LocationsController extends Controller public function edit(Location $location) : View | RedirectResponse { $this->authorize('update', Location::class); - return view('locations/edit'); + return view('locations/edit')->with('item', $location); } /**