i am using Laravel 5.2
for my project.
I have a list that shows posts. I have 2 different categories. I'm showing them in a list with foreach
loop. Every category in that list fetches 6 post from model
. What i want to do is , showing them in one list like they mixed. One from first category one from second category.
Example List:
- This post from News Model
- This post from Blog Model
- This post from News Model
- This post from Blog Model
- This post from News Model
- This post from Blog Model
How can i achieve this , thank you !
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire