allows to search full name

This commit is contained in:
Godfrey M 2023-11-16 11:14:42 -08:00
parent 57019e170f
commit f9baeefbaf

View file

@ -800,7 +800,9 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
->orWhere('phone', 'LIKE', '%' . $search . '%')
->orWhere('jobtitle', 'LIKE', '%' . $search . '%')
->orWhere('employee_num', 'LIKE', '%' . $search . '%')
->orWhere('username', 'LIKE', '%' . $search . '%');
->orWhere('username', 'LIKE', '%' . $search . '%')
->orwhereRaw('CONCAT(first_name," ",last_name) LIKE \''.$search.'%\'');