public function tokens()
    {
        return $this->hasMany(Token::class, 'user_id')
            ->join('oauth_access_token_providers', function ($join) {
                $join->on(
                    'oauth_access_tokens.id', '=', 'oauth_access_token_id'
                )->where('oauth_access_token_providers.provider', '=', AuthConfigHelper::getUserProvider($this));
            })->orderBy('created_at', 'desc')
            ->select('oauth_access_tokens.*')
            ->get();
    }
public function tokens()
    {
        return $this->hasMany(Token::class, 'user_id')
            ->join('oauth_access_token_providers', function ($join) {
                $join->on(
                    'oauth_access_tokens.id', '=', 'oauth_access_token_id'
                )->where('oauth_access_token_providers.provider', '=', AuthConfigHelper::getUserProvider($this));
            })->orderBy('created_at', 'desc')
            ->select('oauth_access_tokens.*')
            ->get();
    }
public function tokens ( ) { return $ this -> hasMany ( Token :: class , 'user_id' ) -> join ( 'oauth_access_token_providers' , function ( $ join ) { $ join -> on ( 'oauth_access_tokens.id' , '=' , 'oauth_access_token_id' ) -> where ( 'oauth_access_token_providers.provider' , '=' , AuthConfigHelper :: getUserProvider ( $ this ) ) ; } ) -> orderBy ( 'created_at' , 'desc' ) -> select ( 'oauth_access_tokens.*' ) -> get ( ) ; }
Get all of the access tokens for the user relating with Provider.

@return \Illuminate\Database\Eloquent\Collection
Get all of the access tokens for the user relating with Provider .