- Add search by ID

This commit is contained in:
Vincent BRIDIER 2021-08-16 15:23:38 +02:00
parent e4fb5e9d9e
commit fbcb1e544e

View file

@ -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%")