Skip to content

Commit

Permalink
Merge pull request #20896 from devcircus/patch-1
Browse files Browse the repository at this point in the history
[5.5] setModel parameter should be the model name
  • Loading branch information
themsaid authored Aug 31, 2017
2 parents 1f2d2df + 3269ad7 commit 57c4513
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());
throw (new ModelNotFoundException)->setModel($parameter->getClass()->name);
}

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

0 comments on commit 57c4513

Please sign in to comment.