public function associateScope(AuthCodeEntity $token, ScopeEntity $scope)
    {
        $this->getConnection()->table('oauth_auth_code_scopes')->insert([
            'auth_code_id' => $token->getId(),
            'scope_id' => $scope->getId(),
            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now(),
        ]);
    }
public function associateScope(AuthCodeEntity $token, ScopeEntity $scope)
    {
        $this->getConnection()->table('oauth_auth_code_scopes')->insert([
            'auth_code_id' => $token->getId(),
            'scope_id' => $scope->getId(),
            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now(),
        ]);
    }
public function associateScope ( AuthCodeEntity $ token , ScopeEntity $ scope ) { $ this -> getConnection ( ) -> table ( 'oauth_auth_code_scopes' ) -> insert ( [ 'auth_code_id' => $ token -> getId ( ) , 'scope_id' => $ scope -> getId ( ) , 'created_at' => Carbon :: now ( ) , 'updated_at' => Carbon :: now ( ) , ] ) ; }
Associate a scope with an access token.

@param  \League\OAuth2\Server\Entity\AuthCodeEntity $token The auth code
@param  \League\OAuth2\Server\Entity\ScopeEntity $scope The scope

@return void
Associate a scope with an access token .