Whitespace

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2025-03-04 19:29:09 +00:00
parent bbabbe1b87
commit d4e227f003

View file

@ -127,7 +127,7 @@ class Handler extends ExceptionHandler
if ($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.