W3cubDocs

/Laravel 5.8

BindingRegistrar

interface BindingRegistrar (View source)

Methods

void bind(string $key, string|callable $binder)

Add a new route parameter binder.

Closure getBindingCallback(string $key)

Get the binding callback for a given binding.

Details

void bind(string $key, string|callable $binder)

Add a new route parameter binder.

Parameters

string $key
string|callable $binder

Return Value

void

Closure getBindingCallback(string $key)

Get the binding callback for a given binding.

Parameters

string $key

Return Value

Closure

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Contracts/Routing/BindingRegistrar.html