Skip to content

Commit 63e4c42

Browse files
committed
Added strtolower
Signed-off-by: snipe <[email protected]>
1 parent d4e227f commit 63e4c42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Exceptions/Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function render($request, Throwable $e)
127127
if ($e instanceof \Illuminate\Database\Eloquent\ModelNotFoundException) {
128128

129129
// This gets the MVC model name from the exception and formats in a way that's less fugly
130-
$model_name = implode(" ", preg_split('/(?=[A-Z])/', last(explode('\\', $e->getModel()))));
130+
$model_name = strtolower(implode(" ", preg_split('/(?=[A-Z])/', last(explode('\\', $e->getModel())))));
131131
$route = str_plural(strtolower(last(explode('\\', $e->getModel())))).'.index';
132132

133133
// Sigh.

0 commit comments

Comments
 (0)