From fd854072b06944c78df15e429aba5214fe4dfdb4 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 11 Mar 2025 13:03:00 -0700 Subject: [PATCH] Properly handle route model bound LicenseSeat not being found --- app/Exceptions/Handler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 6e35f8217..e340d70b0 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -141,6 +141,8 @@ class Handler extends ExceptionHandler $route = 'kits.index'; } elseif ($route == 'assetmaintenances.index') { $route = 'maintenances.index'; + } elseif ($route === 'licenseseats.index') { + $route = 'licenses.index'; } return redirect() @@ -203,4 +205,4 @@ class Handler extends ExceptionHandler // }); } -} \ No newline at end of file +}