Handle accessories route names

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2022-08-01 16:06:28 -07:00
parent 744d0d299e
commit 4a4636bd03
3 changed files with 8 additions and 8 deletions
@@ -63,7 +63,7 @@ class AccessoryCheckoutController extends Controller
$this->authorize('checkout', $accessory);
if (! $user = User::find($request->input('assigned_to'))) {
return redirect()->route('checkout/accessory', $accessory->id)->with('error', trans('admin/accessories/message.checkout.user_does_not_exist'));
return redirect()->route('accessories.checkout.show', $accessory->id)->with('error', trans('admin/accessories/message.checkout.user_does_not_exist'));
}
// Update the accessory data