model.afterRestore
Called after the model is restored from a soft delete
Example usage:
$model->bindEvent('model.afterRestore', function () use (\Winter\Storm\Database\Model $model) { \Log::info("{$model->name} has been brought back to life!"); });
Usage
Triggers
Class or file | Line |
---|---|
Winter\Storm\Database\Traits\SoftDelete
|
62 |
Copyright © 2024 Winter CMS