Merge branch 'develop' into feature/client-api
This commit is contained in:
commit
9a32b9fd03
2 changed files with 4 additions and 1 deletions
|
@ -45,7 +45,9 @@ class ApiSubstituteBindings extends SubstituteBindings
|
|||
$route = $request->route();
|
||||
|
||||
foreach (self::$mappings as $key => $model) {
|
||||
$this->router->model($key, $model);
|
||||
$this->router->model($key, $model, function () use ($request) {
|
||||
$request->attributes->set('is_missing_model', true);
|
||||
});
|
||||
}
|
||||
|
||||
$this->router->substituteBindings($route);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue