If you've set up your relations correctly you should be able to do the following (when using blade):
@foreach($customers as $customer) {
{{ $customer->name }}
@foreach($customer->projects as $project)
{{ $project->name }}
@endforeach
@endforeach
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community