You can query relations, as described here: http://laravel.com/docs/eloquent#querying-relations
$users = User::whereHas('timeslots', function($q) use($date)
{
$q->where('open', '1')->where('date', $date);
})->get();
Or is that not what you mean?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community