vendredi 1 mai 2020

distinct() on specific column is not working in laravel?

I am trying to get rows where rate_card_id is different but is not working.

 $distinct_rows = RateCharge::where('customer_charge_id',$customer_charge_id)->distinct('rate_card_id')->get();

it is fetching all the rows where customer_charge_id matched.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire