AddTrait
Tags
Table of Contents
- $collection : RouteCollection
 - $name : mixed
 - $prefixes : mixed
 - __invoke() : RouteConfigurator
 - Adds a route.
 - add() : RouteConfigurator
 - Adds a route.
 - alias() : AliasConfigurator
 
Properties
$collection
    protected
        RouteCollection
    $collection
    
    
    
    
$name
    protected
        mixed
    $name
     = ''
        
        
    
$prefixes
    protected
        mixed
    $prefixes
    
        
        
    
Methods
__invoke()
Adds a route.
    public
                __invoke(string $name, string|array<string|int, mixed> $path) : RouteConfigurator
    
        Parameters
- $name : string
 - $path : string|array<string|int, mixed>
 - 
                    
the path, or the localized paths of the route
 
Return values
RouteConfigurator —add()
Adds a route.
    public
                add(string $name, string|array<string|int, mixed> $path) : RouteConfigurator
    
        Parameters
- $name : string
 - $path : string|array<string|int, mixed>
 - 
                    
the path, or the localized paths of the route
 
Return values
RouteConfigurator —alias()
    public
                alias(string $name, string $alias) : AliasConfigurator
        
        Parameters
- $name : string
 - $alias : string