public function group(bool $forceBase = false): array
    {
        $group = [
            'prefix' => $this->prefix($forceBase),
        ];

        if (! \is_null($domain = $this->domain($forceBase))) {
            $group['domain'] = $domain;
        }

        return $group;
    }
public function group(bool $forceBase = false): array
    {
        $group = [
            'prefix' => $this->prefix($forceBase),
        ];

        if (! \is_null($domain = $this->domain($forceBase))) {
            $group['domain'] = $domain;
        }

        return $group;
    }
public function group ( bool $ forceBase = false ) : array { $ group = [ 'prefix' => $ this -> prefix ( $ forceBase ) , ] ; if ( ! \ is_null ( $ domain = $ this -> domain ( $ forceBase ) ) ) { $ group [ 'domain' ] = $ domain ; } return $ group ; }
Get route group.

@param  bool  $forceBase

@return array
Get route group .