La solución más fácil que encontré fue usar whereRaw
en cambio:
whereRaw(['path'=>['$elemMatch'=>['$elemMatch'=>['$in'=>[25]]]]])
Esto funciona correctamente.
La solución más fácil que encontré fue usar whereRaw
en cambio:
whereRaw(['path'=>['$elemMatch'=>['$elemMatch'=>['$in'=>[25]]]]])
Esto funciona correctamente.