79283747

Date: 2024-12-16 05:51:54
Score: 1.5
Natty:
Report link

Because there's is no query instance declared above.So $query is an empty variable right?. So you can directly call the model and apply where condition.

ModelName::whereIn('lead_owner_id', $ownerIds)->get();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: ghost malmer