W3cubDocs

/Laravel 8

RouteGroup

class RouteGroup (View source)

Methods

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

Merge route groups into a new array.

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 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

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Routing/RouteGroup.html