RouteGroup
class RouteGroup
Methods
Merge route groups into a new array.
Format the metadata for the new group attributes.
Merge the given route metadata.
Determine if the given metadata values should be merged.
Format the namespace for the new group attributes.
Format the prefix for the new group attributes.
Format the "wheres" for the new group attributes.
Format the "as" clause of the new group attributes.
Details
at line 14
static array
merge(array $new, array $old, bool $prependExistingPrefix = true)
Merge route groups into a new array.
at line 51
static protected array
formatMetadata(array $new, array $old)
Format the metadata for the new group attributes.
at line 64
static array
mergeMetadata(array $old, array $new)
Merge the given route metadata.
Associative array values are merged recursively, while all other values, including lists, replace the existing value entirely.
at line 80
static protected bool
mergableMetadata(mixed $old, mixed $new)
Determine if the given metadata values should be merged.
at line 91
static protected string|null
formatNamespace(array $new, array $old)
Format the namespace for the new group attributes.
at line 105
static protected string|null
formatPrefix(array $new, array $old, bool $prependExistingPrefix = true)
Format the prefix for the new group attributes.
at line 119
static protected array
formatWhere(array $new, array $old)
Format the "wheres" for the new group attributes.
at line 130
static protected array
formatAs(array $new, array $old)
Format the "as" clause of the new group attributes.