| 1 | <?php |
||
| 7 | class AuditableWithDeletesTraitObserver |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Model's deleting event hook |
||
| 11 | * |
||
| 12 | * @param Model $model |
||
| 13 | */ |
||
| 14 | public function deleting(Model $model) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get authenticated user id depending on model's auth guard. |
||
| 24 | * |
||
| 25 | * @return int |
||
| 26 | */ |
||
| 27 | protected function getAuthenticatedUserId() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Model's restoring event hook |
||
| 34 | * |
||
| 35 | * @param Model $model |
||
| 36 | */ |
||
| 37 | public function restoring(Model $model) |
||
| 43 | } |
||
| 44 |