Skip to content

Commit

Permalink
Router substitute or ImplicitRouteBinding throws exception (#26095)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nguyen Xuan Quynh authored and taylorotwell committed Oct 12, 2018
1 parent 89d5cf4 commit 1e05259
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ImplicitRouteBinding.php
Expand Up @@ -14,6 +14,8 @@ class ImplicitRouteBinding
* @param \Illuminate\Container\Container $container
* @param \Illuminate\Routing\Route $route
* @return void
*
* @throws \Illuminate\Database\Eloquent\ModelNotFoundException
*/
public static function resolveForRoute($container, $route)
{
Expand Down
4 changes: 4 additions & 0 deletions Router.php
Expand Up @@ -757,6 +757,8 @@ public static function toResponse($request, $response)
*
* @param \Illuminate\Routing\Route $route
* @return \Illuminate\Routing\Route
*
* @throws \Illuminate\Database\Eloquent\ModelNotFoundException
*/
public function substituteBindings($route)
{
Expand All @@ -774,6 +776,8 @@ public function substituteBindings($route)
*
* @param \Illuminate\Routing\Route $route
* @return void
*
* @throws \Illuminate\Database\Eloquent\ModelNotFoundException
*/
public function substituteImplicitBindings($route)
{
Expand Down

0 comments on commit 1e05259

Please sign in to comment.