A free open source IT asset/license management system
Added strtolower
snipe63e4c424452a
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.phpindex 180381b1fb..6e35f8217a 100644--- a/app/Exceptions/Handler.php+++ b/app/Exceptions/Handler.php@@ -127,7 +127,7 @@ class Handler extends ExceptionHandlerif ($e instanceof \Illuminate\Database\Eloquent\ModelNotFoundException) {// This gets the MVC model name from the exception and formats in a way that's less fugly- $model_name = implode(" ", preg_split('/(?=[A-Z])/', last(explode('\\', $e->getModel()))));+ $model_name = strtolower(implode(" ", preg_split('/(?=[A-Z])/', last(explode('\\', $e->getModel())))));$route = str_plural(strtolower(last(explode('\\', $e->getModel())))).'.index';// Sigh.