diff --git a/app/Http/Livewire/Datatable.php b/app/Http/Livewire/Datatable.php index c804486..1fd97a4 100644 --- a/app/Http/Livewire/Datatable.php +++ b/app/Http/Livewire/Datatable.php @@ -92,6 +92,11 @@ class Datatable extends Component { $query = $this->model->query(); + // Only include trashed if asked to. + if ($this->trashed) { + $query->onlyTrashed(); + } + // Check colums for "dot-notated" strings. // as we want to eager load those relationships foreach ($this->columns as $col => $_) {