1
0
Fork 0

app/Http/Livewire/Datatable.php: Adding $trashed variable

This commit is contained in:
Henrik Hautakoski 2022-01-23 12:47:26 +01:00
parent 11026c0c6e
commit 6d988f925a

View file

@ -18,7 +18,8 @@ class Datatable extends Component
protected $queryString = [
'sort' => ['except' => 'id'],
'dir' => ['except' => 'asc'],
'page' => ['except' => 1]
'page' => ['except' => 1],
'trashed' => ['except' => false]
];
/**
@ -41,6 +42,11 @@ class Datatable extends Component
*/
public string $default_sort;
/**
* If only trashed records should be shown.
*/
public bool $trashed = false;
public $route_create;
/**