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