A free open source IT asset/license management system
Whitespace
sniped4e227f003a7
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.phpindex e4155d34ff..180381b1fb 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 = implode(" ", preg_split('/(?=[A-Z])/', last(explode('\\', $e->getModel()))));$route = str_plural(strtolower(last(explode('\\', $e->getModel())))).'.index';// Sigh.