vendredi 22 mars 2019

How to fetch top 10 rows from a table depending on a field value?

I have an 'articles' table (Model: Article) where there is field named 'pageview'. Each Article has different number of pageview. I want to fetch those rows who holds top 10 pageviews. How can I fetch these data using eloquent?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire