I'm making a query using the following line:
$items = $this->model->with('subCategory')->get();
But I want to put a query inside the with() method, because I just want to get the items from with() where the status is equal to 0.
How can i achieve this?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire