Route
in package
Read onlyYes
FinalYes
Tags
Table of Contents
Properties
- $handler : string|Closure
- $method : string
- $middleware : array<string|int, mixed>
- $name : string|null
- $path : string
Methods
- __construct() : mixed
- withAddedMiddleware() : self
- withPrefixedPath() : self
Properties
$handler
public
string|Closure
$handler
$method
public
string
$method
$middleware
public
array<string|int, mixed>
$middleware
$name
public
string|null
$name
$path
public
string
$path
Methods
__construct()
public
__construct(string $method, string $path, string|Closure $handler, array<int, string> $middleware, string|null $name) : mixed
Parameters
- $method : string
- $path : string
- $handler : string|Closure
- $middleware : array<int, string>
-
Fully-qualified middleware class names.
- $name : string|null
withAddedMiddleware()
public
withAddedMiddleware(array<int, string> $middleware) : self
Parameters
- $middleware : array<int, string>
Return values
selfwithPrefixedPath()
public
withPrefixedPath(string $prefix) : self
Parameters
- $prefix : string