- 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) {
|
})->map(function (TicketType $ticket) {
|
||||||
return $ticket->value;
|
return $ticket->value;
|
||||||
});
|
});
|
||||||
$q->where('text', 'LIKE', "%$word%")
|
$q->where('id', $word)
|
||||||
->orWhereIn('status', $s)
|
->orwhere('text', 'LIKE', "%$word%")
|
||||||
|
->orWhereIn('status', $s)
|
||||||
->orWhereIn('type', $t)
|
->orWhereIn('type', $t)
|
||||||
->orWhere('file', 'LIKE', "%$word%")
|
->orWhere('file', 'LIKE', "%$word%")
|
||||||
->orWhere('file2', 'LIKE', "%$word%")
|
->orWhere('file2', 'LIKE', "%$word%")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue