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

Triggers

Copyright © 2024 Winter CMS