behaviors/SoftDelete.php
public function restore() {

        // mark attribute as null
        $attribute = $this->attribute;
        $this->owner->$attribute = null;

        // save record
        $this->owner->save(false, [$attribute]);
    }
public function restore() {

        // mark attribute as null
        $attribute = $this->attribute;
        $this->owner->$attribute = null;

        // save record
        $this->owner->save(false, [$attribute]);
    }
Restore soft-deleted record