Instead of accessing Bids via
$offers[0]['bids'];
use
$offers[0]->bids;
I don't know if this will help you with the first question, but try it.
I can solve the second one. You can find it in the docs.
Cars::with('bids')->has('bids')...
Make a new reply if your first question is not solved.
Hey Fritzberg,
thanks for your reply. has('bids) helped - Thank you for this hint!
But $offers[0]->bids; don't work. I still can't find a solution here. Crazy....
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community