model.beforeRestore

Called before the model is restored from a soft delete

Example usage:

$model->bindEvent('model.beforeRestore', function () use (\Winter\Storm\Database\Model $model) { \Log::info("{$model->name} is going to be restored!"); });

Usage

Globally

use Event;

Event::listen('model.beforeRestore', function () {
    // Your event listener code goes here...
});

Triggers

Copyright © 2023 Winter CMS