- Add search by ID
This commit is contained in:
parent
e4fb5e9d9e
commit
fbcb1e544e
1 changed files with 3 additions and 2 deletions
|
|
@ -114,8 +114,9 @@ class TicketController extends Controller
|
|||
})->map(function (TicketType $ticket) {
|
||||
return $ticket->value;
|
||||
});
|
||||
$q->where('text', 'LIKE', "%$word%")
|
||||
->orWhereIn('status', $s)
|
||||
$q->where('id', $word)
|
||||
->orwhere('text', 'LIKE', "%$word%")
|
||||
->orWhereIn('status', $s)
|
||||
->orWhereIn('type', $t)
|
||||
->orWhere('file', 'LIKE', "%$word%")
|
||||
->orWhere('file2', 'LIKE', "%$word%")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue