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)
RouteBuilder constructor.
string
getPrefix()
No description
setPrefix(string $prefix)
No description
scope(string $scope)
No description
buildGroup()
No description
$this
addMiddleware(string|object $middleware, $priority = 10)
No description
mixed
getNamespace()
No description
setNamespace(mixed $namespace)
No description
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
routes($routes, $pkgHandle = null)
No description