belongsTo(User::class); } public static function findByProvider(string $provider, string $providerId): ?self { return static::where('provider', $provider) ->where('provider_id', $providerId) ->first(); } }