RouteBinding
class RouteBinding (View source)
Methods
static Closure | forCallback(Container $container, Closure|string $binder) Create a Route model binding for a given callback. | |
static Closure | createClassBinding(Container $container, string $binding) Create a class based binding using the IoC container. | |
static Closure | forModel(Container $container, string $class, Closure|null $callback = null) Create a Route model binding for a model. |
Details
static Closure forCallback(Container $container, Closure|string $binder)
Create a Route model binding for a given callback.
static protected Closure createClassBinding(Container $container, string $binding)
Create a class based binding using the IoC container.
static Closure forModel(Container $container, string $class, Closure|null $callback = null)
Create a Route model binding for a model.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Routing/RouteBinding.html