interface Illuminate / Routing / RouteCollectionInterface

RouteCollectionInterface

Methods

public

add ( Route $route ) : Route

Add a Route instance to the collection.

Parameters

public

refreshNameLookups ( ) : void

Refresh the name look-up table.

public

refreshActionLookups ( ) : void

Refresh the action look-up table.

public

match ( Request $request ) : Route

Find the first route matching a given request.

Parameters

public

get ( $method ) : Illuminate\...\Route[]

Get routes from the collection by method.

Parameters

  • $method string|null
public

hasNamedRoute ( $name ) : bool

Determine if the route collection contains a given named route.

Parameters

  • $name string
public

getByName ( $name ) : Route |null

Get a route instance by its name.

Parameters

  • $name string
public

getByAction ( $action ) : Route |null

Get a route instance by its controller action.

Parameters

  • $action string
public

getRoutes ( ) : Illuminate\...\Route[]

Get all of the routes in the collection.

public

getRoutesByMethod ( ) : array

Get all of the routes keyed by their HTTP verb / method.

public

getRoutesByName ( ) : Illuminate\...\Route[]

Get all of the routes keyed by their name.