<?php

namespace App\Classes\Modules\Accounts\Services;


use App\Classes\Exceptions\MalformedRequestException;
use App\Classes\General\Eloquent\AbstractUpdateRecord;
use App\Models\PasswordReset;
use App\Models\UserEmailVerification;

class ExpiresEmailVerificationAttempt extends AbstractUpdateRecord
{


    /**
     * @param UserEmailVerification $model
     * @return \Illuminate\Database\Eloquent\Model
     * @throws MalformedRequestException
     */
    public function execute(UserEmailVerification $model){

        $model->is_active = false;
        return $this->handler($model);


    }


}