So it seems I had to do a double foreach loop:
@foreach($vehicles as $vehicle)
@foreach($vehicle->specs as $type)
{{ HTML::link('search/type='.$type->spec_value, $type->spec_value) }}
@endforeach
@endforeach
Not entirely sure why I had to do that so if anyone can shed some light on that I'd appreciate it.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community