UrlRoutable

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.

UrlGenerator::__construct()

void __construct(RouteCollection $routes, Request $request) Create a new URL Generator instance. Parameters RouteCollection $routes Request $request Return Value void

UrlGenerator::__callStatic()

static mixed __callStatic(string $method, array $parameters) Dynamically handle calls to the class. Parameters string $method array $parameters Return Value mixed Exceptions BadMethodCallException

UrlGenerator::__call()

mixed __call(string $method, array $parameters) Dynamically handle calls to the class. Parameters string $method array $parameters Return Value mixed Exceptions BadMethodCallException

UrlGenerator::to()

string to(string $path, mixed $extra = array(), bool $secure = null) Generate an absolute URL to the given path. Parameters string $path mixed $extra bool $secure Return Value string

UrlGenerator::to()

string to(string $path, mixed $extra = array(), bool $secure = null) Generate an absolute URL to the given path. Parameters string $path mixed $extra bool $secure Return Value string

UrlGenerator::setSessionResolver()

$this setSessionResolver(callable $sessionResolver) Set the session resolver for the generator. Parameters callable $sessionResolver Return Value $this

UrlGenerator::setRoutes()

$this setRoutes(RouteCollection $routes) Set the route collection. Parameters RouteCollection $routes Return Value $this

UrlGenerator::setRootControllerNamespace()

$this setRootControllerNamespace(string $rootNamespace) Set the root controller namespace. Parameters string $rootNamespace Return Value $this

UrlGenerator::setRootControllerNamespace()

$this setRootControllerNamespace(string $rootNamespace) Set the root controller namespace. Parameters string $rootNamespace Return Value $this