$travels = People::find(1)->travels()->whereHas('photos', function ($query) {
$query->where('place_key', 'category')->where('place_value', 'work_travel');
}
)->get();
marcelzutphen liked this reply
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community