Skip to content

Commit 891f90e

Browse files
committed
use get_class
1 parent 57c4513 commit 891f90e

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()->name);
36+
throw (new ModelNotFoundException)->setModel(get_class($instance));
3737
}
3838

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

0 commit comments

Comments
 (0)