src/Drivers/UuidDriver.php
public function code(): string
    {
        $version = config('doorman.uuid.version', 4);

        $method = 'createVersion' . $version . 'Uuid';

        if (method_exists($this, $method)) {
            return $this->$method();
        }

        throw new InvalidArgumentException("Version [$version] not supported.");
    }
public function code(): string
    {
        $version = config('doorman.uuid.version', 4);

        $method = 'createVersion' . $version . 'Uuid';

        if (method_exists($this, $method)) {
            return $this->$method();
        }

        throw new InvalidArgumentException("Version [$version] not supported.");
    }
public function code ( ) : string { $ version = config ( 'doorman.uuid.version' , 4 ) ; $ method = 'createVersion' . $ version . 'Uuid' ; if ( method_exists ( $ this , $ method ) ) { return $ this -> $ method ( ) ; } throw new InvalidArgumentException ( "Version [$version] not supported." ) ; }
Create an invite code.

@return string
Create an invite code .