Support the ongoing development of Laravel.io →
Eloquent Views Blade
Last updated 1 year ago.
0

Okay guys, I figured it out, the answer is here: http://forumsarchive.laravel.io/viewtopic.php?id=9295

cheers!

 @if(!$user->Vehicles->isEmpty())
                    @foreach($user->Vehicles as $vehicle)
                     {{--  Vehicle data goes here  --}}
                    @endforeach
 @else
                     {{--  No vehicles message goes here  --}}
 @endif
Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

mkyukov mkyukov Joined 1 Mar 2015

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.

© 2024 Laravel.io - All rights reserved.