diff --git a/app/Contact.php b/app/Contact.php index 475c6d6..4df5c2e 100644 --- a/app/Contact.php +++ b/app/Contact.php @@ -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();