RouteGroupBuilder
class RouteGroupBuilder (View source)
Properties
protected | $router | This is the original router, not the temporary router we created for the route group callable. |
|
protected string | $prefix | A path prefix for all routes. |
|
protected | $namespace | The ability to set a common namespace for all classes within a group |
|
protected | $scope | Define one or more scope (comma-delimited) that apply to this route. Used with API routes. |
|
protected RouteMiddleware[] | $middlewares | ||
protected | $requirements | Regular expressions that lock down URL parameters to certain conditions. |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
__construct(Router $router)
RouteGroupBuilder constructor.
string
getPrefix()
No description
$this
setPrefix(string $prefix)
No description
$this
scope(string $scope)
No description
buildGroup()
No description
$this
addMiddleware(string|object $middleware, int $priority = 10)
No description
mixed
getNamespace()
No description
$this
setNamespace(mixed $namespace)
No description
$this
setRequirements(array $requirements)
No description
protected
processPrefix(Route $route)
No description
protected
processRequirements(Route $route)
No description
protected
processNamespace(Route $route)
No description
protected
processMiddlewares(Route $route)
No description
protected
processScope(Route $route)
No description
protected
sendFromGroupToRouter(RouteCollection $routeCollection, Router $router)
No description
$this
routes($routes, null $pkgHandle = null)
No description