Laravel 4.0 or 4.1? whereHas is available only in 4.1.
Hi Gabriel, 4.1.
This works...
$activity = Activity::where('patient_id', '=', $patient->id)
->whereHas('calendar', function($q) {
$q->where('private', '=', 1);
})
->get();
...but the original code I posted does not.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community