MySQL очаква JSON низ:
$leads->whereRaw('JSON_CONTAINS(user, ?)', [json_encode($users)])
В Laravel 5.6.24 можете да използвате whereJsonContains()
:
$leads->whereJsonContains('user', $users)
MySQL очаква JSON низ:
$leads->whereRaw('JSON_CONTAINS(user, ?)', [json_encode($users)])
В Laravel 5.6.24 можете да използвате whereJsonContains()
:
$leads->whereJsonContains('user', $users)