mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 06:13:45 +02:00
Merge branch 'develop' into feature/client-api
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user