concat() function using laravel update query
concat and search in laravel eloquent
$query->where(DB::raw("CONCAT(`first_name`,' ',`last_name`)"), 'like', '%' . request('filter') . '%');
concat() function using laravel update query
$driver_update = Driver::where('id',$id)->update(['service_ids' => DB::raw('concat(service_ids,",","'.$service_id.'")')]);
$query->orWhere(DB::raw("CONCAT(`nvp`, ' ', `vpv`)"), 'LIKE', "%".$this->searchNeedle."%");
$query->orWhereRaw("CONCAT(`nvp`, ' ', `vpv`) LIKE ?", ['%'.$this->searchNeedle.'%']);