app/Http/Livewire/Datatable.php: Adding $trashed variable
This commit is contained in:
parent
11026c0c6e
commit
6d988f925a
1 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Reference in a new issue