src/User/RegistrationToken.php
public static function generate(string $provider, string $identifier, array $attributes, array $payload)
    {
        $token = new static;

        $token->token = str_random(40);
        $token->provider = $provider;
        $token->identifier = $identifier;
        $token->user_attributes = $attributes;
        $token->payload = $payload;
        $token->created_at = Carbon::now();

        return $token;
    }
public static function generate(string $provider, string $identifier, array $attributes, array $payload)
    {
        $token = new static;

        $token->token = str_random(40);
        $token->provider = $provider;
        $token->identifier = $identifier;
        $token->user_attributes = $attributes;
        $token->payload = $payload;
        $token->created_at = Carbon::now();

        return $token;
    }
public static function generate ( string $ provider , string $ identifier , array $ attributes , array $ payload ) { $ token = new static ; $ token -> token = str_random ( 40 ) ; $ token -> provider = $ provider ; $ token -> identifier = $ identifier ; $ token -> user_attributes = $ attributes ; $ token -> payload = $ payload ; $ token -> created_at = Carbon :: now ( ) ; return $ token ; }
Generate an auth token for the specified user.

@param string $provider
@param string $identifier
@param array $attributes
@param array $payload
@return static
Generate an auth token for the specified user .