Laravel this is not only a practical framework, it is also a programming style
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?
Aucun commentaire:
Enregistrer un commentaire