Show trashed documents

This commit is contained in:
Benjamin Beganović 2021-09-10 21:49:17 +02:00
parent e6474b2d07
commit 2d9730191f

View File

@ -53,7 +53,10 @@ class DocumentsTable extends Component
public function render()
{
return render('components.livewire.documents-table', [
'documents' => $this->query->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc')->paginate($this->per_page),
'documents' => $this->query
->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc')
->withTrashed()
->paginate($this->per_page),
]);
}