Skip to content

Commit

Permalink
use get_class
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Aug 31, 2017
1 parent 57c4513 commit 891f90e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/ImplicitRouteBinding.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static function resolveForRoute($container, $route)
$instance = $container->make($parameter->getClass()->name);

if (! $model = $instance->resolveRouteBinding($parameterValue)) {
throw (new ModelNotFoundException)->setModel($parameter->getClass()->name);
throw (new ModelNotFoundException)->setModel(get_class($instance));
}

$route->setParameter($parameterName, $model);
Expand Down

0 comments on commit 891f90e

Please sign in to comment.