|
@@ -44,8 +44,8 @@ class AppointmentController extends Controller
|
|
|
->where(function ($query) use ($proIds, $clientId) {
|
|
|
$query
|
|
|
->whereIn('pro_id', $proIds)
|
|
|
- ->orWhere('client_id', '=', $clientId);
|
|
|
- // ->orWhereRaw('client_id IN (SELECT shadow_client_id FROM pro WHERE id IN (?))', [implode(',', $proIds)]);
|
|
|
+ ->orWhere('client_id', '=', $clientId)
|
|
|
+ ->orWhereRaw('client_id IN (SELECT shadow_client_id FROM pro WHERE id IN (' . implode(',', $proIds) . '))');
|
|
|
});
|
|
|
}
|
|
|
|