Support the ongoing development of Laravel.io →
posted 9 years ago
Eloquent
Last updated 1 year ago.
0

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.

Last updated 1 year ago.
0

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....

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.