|
@@ -384,7 +384,7 @@ class ApiService{
|
|
|
|
|
|
if ($person) {
|
|
|
$person_id = DB::connection('mysql_fwview')->table('hrmresource')
|
|
|
- ->where('lastname', 'like', '%' . $person . '%')->value('id')->all();
|
|
|
+ ->where('lastname', 'like', '%' . $person . '%')->pluck('id')->all();
|
|
|
$query = $query->whereIn('lrr', $person_id);
|
|
|
}
|
|
|
|