Support the ongoing development of Laravel.io →
Eloquent Views Blade

Hi.

Using this structure: http://stackoverflow.com/questions/20801859/laravel-eloquent-filter-by-column-of-relationship

I want to show in my view (index.blade.php) the next nested list

  • Category 1
    • Post1.Category1
    • Post2.Category1
    • Post3.Category1
  • Category 2
    • Post1.Category2
    • Post2.Category2
  • Category 3
    • Post1.Category3

Which arrays do I must pass from my Controller.

Thanks

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

elecdesa elecdesa Joined 12 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.