src/Token.php
public function generateData($key, $secret, $time = null)
    {
        $time = $time ?: time();
        $token = $this->generate($key, $secret, $time);

        return $token ? compact('key', 'time', 'token') : [];
    }
public function generateData($key, $secret, $time = null)
    {
        $time = $time ?: time();
        $token = $this->generate($key, $secret, $time);

        return $token ? compact('key', 'time', 'token') : [];
    }
Generate a token data array.

@param  string  $key
@param  string  $secret
@param  string|int|null  $time
@return array