RainLab\User\Models\MailBlocker::syncUser PHP Method

syncUser() public static method

Updates mail blockers for a user if they change their email address
public static syncUser ( Model $user ) : mixed
$user Model
return mixed
    public static function syncUser($user)
    {
        return static::where('user_id', $user->id)->update(['email' => $user->email]);
    }