Skip to content

Commit 57c4513

Browse files
authored
Merge pull request #20896 from devcircus/patch-1
[5.5] setModel parameter should be the model name
2 parents 1f2d2df + 3269ad7 commit 57c4513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Routing/ImplicitRouteBinding.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static function resolveForRoute($container, $route)
3333
$instance = $container->make($parameter->getClass()->name);
3434

3535
if (! $model = $instance->resolveRouteBinding($parameterValue)) {
36-
throw (new ModelNotFoundException)->setModel($parameter->getClass());
36+
throw (new ModelNotFoundException)->setModel($parameter->getClass()->name);
3737
}
3838

3939
$route->setParameter($parameterName, $model);

0 commit comments

Comments
 (0)