Hi
I have two models - node and content. Content belongsTo 'node' and Node hasMany 'content' - all pretty straight forward.
In my blade template I loop through each $node->content - I'd like to display a count of specific content records, i.e
Count only those content records where a specific condition is matched.
?
You may want to look at the filtering section from the collections area at:
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community