UrlRoutable

interface UrlRoutable (View source)

Methods

mixed getRouteKey()

Get the value of the model's route key.

string getRouteKeyName()

Get the route key for the model.

Model|null resolveRouteBinding(mixed $value)

Retrieve the model for a bound value.

Details

mixed getRouteKey()

Get the value of the model's route key.

Return Value

mixed

string getRouteKeyName()

Get the route key for the model.

Return Value

string

Model|null resolveRouteBinding(mixed $value)

Retrieve the model for a bound value.

Parameters

mixed $value

Return Value

Model|null

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