Remove legacy code
This commit is contained in:
parent
c7f860b3d7
commit
b62838e81f
|
@ -34,8 +34,6 @@ class Contact extends Model
|
|||
$query->where('name', 'ilike', '%'.$search.'%');
|
||||
});
|
||||
});
|
||||
// })->when($filters['role'] ?? null, function ($query, $role) {
|
||||
// $query->whereRole($role);
|
||||
})->when($filters['trashed'] ?? null, function ($query, $trashed) {
|
||||
if ($trashed === 'with') {
|
||||
$query->withTrashed();
|
||||
|
|
Loading…
Reference in New Issue