Route
class Route extends Route (View source)
Properties
protected string | $customName | If this route has a custom name, it appears here. Otherwise it is automatically generated from the path. |
|
protected mixed | $action | The action that the route will execute when it is run. |
|
protected RouteMiddleware[] | $middlewares |
Methods
bool
hasCustomName()
No description
mixed
getAction()
No description
setAction(mixed $action)
No description
mixed
getName()
No description
setCustomName($name)
Sets the custom name. Note: if the route has already been added to the route collection you will want to use $route->updateName($name, $router) instead
getGeneratedName()
No description
getMiddlewares()
No description
Details
bool
hasCustomName()
No description
mixed
getAction()
No description
setAction(mixed $action)
No description
mixed
getName()
No description
setCustomName($name)
Sets the custom name. Note: if the route has already been added to the route collection you will want to use $route->updateName($name, $router) instead
updateName(mixed $name, Router $router)
No description
private
getGeneratedName()
No description
addMiddleware(RouteMiddleware $middleware)
No description
RouteMiddleware[]
getMiddlewares()
No description