| 1 | <?php |
||
| 7 | trait SoftDeletes |
||
| 8 | { |
||
| 9 | use \Illuminate\Database\Eloquent\SoftDeletes; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Boot the soft deleting trait for a model. |
||
| 13 | * |
||
| 14 | * @return void |
||
| 15 | * |
||
| 16 | * @throws \Exception |
||
| 17 | */ |
||
| 18 | public static function bootSoftDeletes() |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritdoc |
||
| 26 | */ |
||
| 27 | public function getQualifiedDeletedAtColumn() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Determine if the model instance has been soft-deleted. |
||
| 34 | * |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | public function trashed() |
||
| 41 | |||
| 42 | } |
||
| 43 |