public function associateAccessToken($sessionId, $accessToken, $expireTime)
    {
        return DB::table('oauth_session_access_tokens')->insertGetId(array(
            'session_id'           => $sessionId,
            'access_token'         => $accessToken,
            'access_token_expires' => $expireTime,
            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now()
        ));
    }
public function associateAccessToken($sessionId, $accessToken, $expireTime)
    {
        return DB::table('oauth_session_access_tokens')->insertGetId(array(
            'session_id'           => $sessionId,
            'access_token'         => $accessToken,
            'access_token_expires' => $expireTime,
            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now()
        ));
    }
public function associateAccessToken ( $ sessionId , $ accessToken , $ expireTime ) { return DB :: table ( 'oauth_session_access_tokens' ) -> insertGetId ( array ( 'session_id' => $ sessionId , 'access_token' => $ accessToken , 'access_token_expires' => $ expireTime , 'created_at' => Carbon :: now ( ) , 'updated_at' => Carbon :: now ( ) ) ) ; }
Associate an access token with a session

Example SQL query:

<code>
INSERT INTO oauth_session_access_tokens (session_id, access_token, access_token_expires)
VALUE (:sessionId, :accessToken, :accessTokenExpire)
</code>

@param  int    $sessionId   The session ID
@param  string $accessToken The access token
@param  int    $expireTime  Unix timestamp of the access token expiry time
@return void
Associate an access token with a session