Sure, whatever I guess.

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2025-02-19 04:18:40 +00:00
parent 55abd242f2
commit 5a7ffa5664
2 changed files with 5 additions and 3 deletions

View file

@ -107,7 +107,9 @@ class ConsumablesController extends Controller
public function edit(Consumable $consumable) : View | RedirectResponse
{
$this->authorize($consumable);
return view('consumables/edit')->with('category_type', 'consumable');
return view('consumables/edit')
->with('item', $consumable)
->with('category_type', 'consumable');
}
@ -199,7 +201,7 @@ class ConsumablesController extends Controller
{
$consumable = Consumable::withCount('users as users_consumables')->find($consumable->id);
$this->authorize($consumable);
return view('consumables/view');
return view('consumables/view', compact('consumable'));
}
public function clone(Consumable $consumable) : View

View file

@ -143,6 +143,6 @@ class GroupsController extends Controller
*/
public function show(Group $group) : View | RedirectResponse
{
return view('groups/view');
return view('groups/view', compact('group'));
}
}