public function associateScope($accessTokenId, $scopeId)
    {
        DB::table('oauth_session_token_scopes')->insert(array(
            'session_access_token_id' => $accessTokenId,
            'scope_id'                => $scopeId,
            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now()
        ));
    }
public function associateScope($accessTokenId, $scopeId)
    {
        DB::table('oauth_session_token_scopes')->insert(array(
            'session_access_token_id' => $accessTokenId,
            'scope_id'                => $scopeId,
            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now()
        ));
    }
public function associateScope ( $ accessTokenId , $ scopeId ) { DB :: table ( 'oauth_session_token_scopes' ) -> insert ( array ( 'session_access_token_id' => $ accessTokenId , 'scope_id' => $ scopeId , 'created_at' => Carbon :: now ( ) , 'updated_at' => Carbon :: now ( ) ) ) ; }
Associate a scope with an access token

Example SQL query:

<code>
INSERT INTO `oauth_session_token_scopes` (`session_access_token_id`, `scope_id`) VALUE (:accessTokenId, :scopeId)
</code>

@param  int    $accessTokenId The ID of the access token
@param  int    $scopeId       The ID of the scope
@return void
Associate a scope with an access token