jeudi 31 décembre 2015

Passing additional variable to partial using @each in blade

from the documentation, only 4 parameters can be pass to @each. I don't think to use @include will help. here my code

@each('partials.nav.categories', $groupCategories, 'parent')

I need to send through an additional variable for use in the partial partials.nav.categories. This variable is not contained within the $groupCategories array.

Is there any way to send this additional variable through or do I have to append it to each item in the partials.nav.categories array?

Thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire