Связывание маршрутов
класс RouteBinding (Просмотреть исходный код)
Методы
| static Closure | forCallback(Контейнер $container, Closure|string $binder) Создать привязку модели маршрута для данного обратного вызова. | |
| static Closure | createClassBinding(Контейнер $container, string $binding) Создать привязку на основе класса, используя контейнер IoC. | |
| static Closure | forModel(Контейнер $container, string $class, Closure|null $callback = null) Создать привязку модели маршрута для модели. |
Подробности
static Closure forCallback(Контейнер $container, Closure|string $binder)
Создать привязку модели маршрута для данного обратного вызова.
static protected Closure createClassBinding(Контейнер $container, string $binding)
Создать привязку на основе класса, используя контейнер IoC.
static Closure forModel(Контейнер $container, string $class, Closure|null $callback = null)
Создать привязку модели маршрута для модели.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Routing/RouteBinding.html