ImplicitRouteBinding

class ImplicitRouteBinding (View source)

Methods

static void resolveForRoute(Container $container, Route $route)

Resolve the implicit route bindings for the given route.

static string|null getParameterName(string $name, array $parameters)

Return the parameter name if it exists in the given parameters.

Details

static void resolveForRoute(Container $container, Route $route)

Resolve the implicit route bindings for the given route.

Parameters

Container $container
Route $route

Return Value

void

Exceptions

ModelNotFoundException

static protected string|null getParameterName(string $name, array $parameters)

Return the parameter name if it exists in the given parameters.

Parameters

string $name
array $parameters

Return Value

string|null

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Routing/ImplicitRouteBinding.html