API Documentation

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
mixin

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

current()

Get the current route for the page being rendered.

public static current() : Route|null
Return values
Route|null

exists()

public static exists(string $routeKey) : bool
Parameters
$routeKey : string
Return values
bool

get()

public static get(string $routeKey) : Route|null
Parameters
$routeKey : string
Return values
Route|null

        
On this page

Search results