Support the ongoing development of →


Joined 17 Nov 2014


Threads 3
Replies 1
Solutions 0
Articles 0

Conditional eager loading

Hi, I've model with fillable column shop_visible. How could I eager load other model where row value...

Likes Replies
posted 8 years ago

Previous route

Could you be so kind to tell me, how can I get previous route? URL::previous() gave me URL but I nee...

Likes Replies

Call to undefined method Illuminate\Database\Query\Builder

Sorry, about formating at first. It's my first post here, I'll try to edit it. I spend some hours of...

Likes Replies
replied 8 years ago

Conditional eager loading

bweston92 said: $model->with(['my-relation' => function($query) { $query->where('shop_v...


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 - All rights reserved.