Skip to content

A free open source IT asset/license management system

Updated model route

snipee589adbe80f5
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php
index 00084d8e19..21c50c2437 100644
--- a/app/Exceptions/Handler.php
+++ b/app/Exceptions/Handler.php
@@ -128,11 +128,13 @@ class Handler extends ExceptionHandler
$model_name = last(explode('\\', $e->getModel()));
$route = str_plural(strtolower(last(explode('\\', $e->getModel())))).'.index';
- // Sigh. Fucking laravel.
+ // Sigh.
if ($route == 'assets.index') {
$route = 'hardware.index';
} elseif ($route == 'reporttemplates.index') {
$route = 'reports/custom';
+ } elseif ($route == 'assetmodels.index') {
+ $route = 'models.index';
} elseif ($route == 'predefinedkits.index') {
$route = 'kits.index';
}