Routes
extends Facade
in package
Provides an easy way to access the Hyde pseudo-router.
To access a route you need the route key which is the equivalent of the URL path of the compiled page.
Tags
Table of Contents
Methods
- all() : RouteCollection
- current() : Route|null
- Get the current route for the page being rendered.
- exists() : bool
- get() : Route|null
- getFacadeRoot() : RouteCollection
- getOrFail() : Route
Methods
all()
public
static all() : RouteCollection
Return values
RouteCollectioncurrent()
Get the current route for the page being rendered.
public
static current() : Route|null
Return values
Route|nullexists()
public
static exists(string $routeKey) : bool
Parameters
- $routeKey : string
Return values
boolget()
public
static get(string $routeKey) : Route|null
Parameters
- $routeKey : string
Return values
Route|nullgetFacadeRoot()
public
static getFacadeRoot() : RouteCollection
Return values
RouteCollectiongetOrFail()
public
static getOrFail(string $routeKey) : Route
Parameters
- $routeKey : string