RouteBinding
class RouteBinding (View source)
Методы
| static Closure | forCallback(Container $container, Closure|string $binder) Создать привязку модели маршрута для заданного обратного вызова. | |
| static Closure | createClassBinding(Container $container, string $binding) Создать привязку на основе класса, используя контейнер IoC. | |
| static Closure | forModel(Container $container, string $class, Closure|null $callback = null) Создать привязку модели маршрута для модели. |
Подробности
static Closure forCallback(Container $container, Closure|string $binder)
Создать привязку модели маршрута для заданного обратного вызова.
static protected Closure createClassBinding(Container $container, string $binding)
Создать привязку на основе класса, используя контейнер IoC.
static Closure forModel(Container $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/11.x/Illuminate/Routing/RouteBinding.html