public function associateScope(SessionEntity $session, ScopeEntity $scope)
    {
        $this->getConnection()->table('oauth_session_scopes')->insert([
            'session_id' => $session->getId(),
            'scope_id' => $scope->getId(),
            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now(),
        ]);
    }
public function associateScope(SessionEntity $session, ScopeEntity $scope)
    {
        $this->getConnection()->table('oauth_session_scopes')->insert([
            'session_id' => $session->getId(),
            'scope_id' => $scope->getId(),
            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now(),
        ]);
    }
public function associateScope ( SessionEntity $ session , ScopeEntity $ scope ) { $ this -> getConnection ( ) -> table ( 'oauth_session_scopes' ) -> insert ( [ 'session_id' => $ session -> getId ( ) , 'scope_id' => $ scope -> getId ( ) , 'created_at' => Carbon :: now ( ) , 'updated_at' => Carbon :: now ( ) , ] ) ; }
Associate a scope with a session.

@param \League\OAuth2\Server\Entity\SessionEntity $session
@param \League\OAuth2\Server\Entity\ScopeEntity $scope The scopes ID might be an integer or string

@return void
Associate a scope with a session .