class RouteGroup (View source)

Methods

static array
merge(array $new, array $old, bool $prependExistingPrefix = true)

Merge route groups into a new array.

static array
formatMetadata(array $new, array $old)

Format the metadata for the new group attributes.

static array
mergeMetadata(array $old, array $new)

Merge the given route metadata.

static bool
mergableMetadata(mixed $old, mixed $new)

Determine if the given metadata values should be merged.

static string|null
formatNamespace(array $new, array $old)

Format the namespace for the new group attributes.

static string|null
formatPrefix(array $new, array $old, bool $prependExistingPrefix = true)

Format the prefix for the new group attributes.

static array
formatWhere(array $new, array $old)

Format the "wheres" for the new group attributes.

static array
formatAs(array $new, array $old)

Format the "as" clause of the new group attributes.

Details

static array merge(array $new, array $old, bool $prependExistingPrefix = true)

Merge route groups into a new array.

Parameters

array $new
array $old
bool $prependExistingPrefix

Return Value

array

static protected array formatMetadata(array $new, array $old)

Format the metadata for the new group attributes.

Parameters

array $new
array $old

Return Value

array

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.

Parameters

array $old
array $new

Return Value

array

static protected bool mergableMetadata(mixed $old, mixed $new)

Determine if the given metadata values should be merged.

Parameters

mixed $old
mixed $new

Return Value

bool

static protected string|null formatNamespace(array $new, array $old)

Format the namespace for the new group attributes.

Parameters

array $new
array $old

Return Value

string|null

static protected string|null formatPrefix(array $new, array $old, bool $prependExistingPrefix = true)

Format the prefix for the new group attributes.

Parameters

array $new
array $old
bool $prependExistingPrefix

Return Value

string|null

static protected array formatWhere(array $new, array $old)

Format the "wheres" for the new group attributes.

Parameters

array $new
array $old

Return Value

array

static protected array formatAs(array $new, array $old)

Format the "as" clause of the new group attributes.

Parameters

array $new
array $old

Return Value

array

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.