Route
final class Route (View source)
Methods
__construct(string $method, string $path, ControllerAction $controllerAction, array $middleware = [], array $parameterConstraints = [], string|null $name = null, Closure|null $assertMutable = null, Closure|null $registerName = null)
method()
string
path()
string
string
action()
string
string|null
middleware(string ...$middleware)
array
constrainParameter(string $name, array $allowedValues)
array
Details
__construct
__construct(string $method, string $path, ControllerAction $controllerAction, array $middleware = [], array $parameterConstraints = [], string|null $name = null, Closure|null $assertMutable = null, Closure|null $registerName = null)
No description
method
string
method()
No description
path
string
path()
No description
controller
string
controller()
No description
action
string
action()
No description
routeName
string|null
routeName()
No description
middlewareStack
array
middlewareStack()
No description
parameterConstraints
array
parameterConstraints()
No description