الصفحات · Laravilt
TrashedFilter
Show, hide, or isolate soft-deleted records.
php
The filter is named trashed and has three states:
| Value | Query |
|---|---|
without (default) | withoutTrashed(): active records only |
with | withTrashed(): all records |
only | onlyTrashed(): deleted records only |
The model must use SoftDeletes:
php
Pair it with RestoreAction, ForceDeleteAction, and their bulk versions.