class Route (View source)

Methods

__construct(string $path, array $methods = ['GET'], array $middleware = [], array $where = [], string|null $name = null)

No description

string
getPath()

Get the route path

array
getMethods()

Get the http methods

array
getMiddleware()

Get the middleware

array
getWhere()

Get the route constraints

string|null
getName()

Get the route name

Details

__construct(string $path, array $methods = ['GET'], array $middleware = [], array $where = [], string|null $name = null)

No description

Parameters

string $path
array $methods
array $middleware
array $where
string|null $name

string getPath()

Get the route path

Return Value

string

array getMethods()

Get the http methods

Return Value

array

array getMiddleware()

Get the middleware

Return Value

array

array getWhere()

Get the route constraints

Return Value

array

string|null getName()

Get the route name

Return Value

string|null