I try do something like this:
<?php $prodottix = \App\Models\Prodotti::whereRaw('FIND_IN_SET(?, REPLACE(categoria_composta, ">", ',') )', [$id])->paginate(30); ?>
basically i need to FIND_IN_SET in a field WHERE , is >... but i'm get array to string error...
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire