Add default prop to is_deleted flag

This commit is contained in:
David Bomba 2023-04-18 18:30:32 +10:00
parent 8ef96a3f55
commit 1d8d505c21

View File

@ -244,7 +244,7 @@ abstract class QueryFilters
}
public function is_deleted($value)
public function is_deleted($value = 'true')
{
if ($value == 'true') {
return $this->builder->where('is_deleted', $value)->withTrashed();