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
Class or file | Line |
---|---|
Winter\Storm\Database\Traits\SoftDelete
|
42 |
Copyright © 2024 Winter CMS