I am trying to find an item by id, but my column is a comma separated string(primaryCategory in below screenshot). I want to get this field in my result when query by any string (i.e. by 50,20,41 etc).
I know there could be options like whereIn, whereHas etc. but not able to find correct syntax. Please help me with this.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire