Support the ongoing development of Laravel.io →
posted 9 years ago
Eloquent
Last updated 2 years ago.
0
$travels = People::find(1)->travels()->whereHas('photos', function ($query) {
    $query->where('place_key', 'category')->where('place_value', 'work_travel');
}
)->get();
Last updated 9 years ago.

marcelzutphen liked this reply

1

Sign in to participate in this thread!

Eventy

Your banner here too?

gambler84 gambler84 Joined 26 Feb 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.