Commit c873e083 authored by Sarun Mungthanya's avatar Sarun Mungthanya
Browse files

issue search send patch

parent fabb6bbe
......@@ -57,8 +57,9 @@ class SendPatchIndex extends Component
->withCount(['confServerPendding as NUMSERVER']);
if ($this->searchSelected && $this->keyword) {
$query->where($this->searchSelected, 'LIKE', $this->keyword . '%');
$query->where($this->searchSelected, 'LIKE', '%'.$this->keyword . '%');
}
// dd( $query->where($this->searchSelected, 'LIKE', $this->keyword . '%'));
$query->orderBy('PID', 'DESC');
$results = $query->paginate($this->perPage);
$this->totalItems = $results->total();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment