Properly handle route model bound LicenseSeat not being found

This commit is contained in:
Marcus Moore 2025-03-11 13:03:00 -07:00
parent 33c9ea4bb1
commit fd854072b0
No known key found for this signature in database

View file

@ -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
//
});
}
}
}