$gallery->set->where('is_public', true)->get(); foreach($gallery->set->all as $set){ //calls get_rules $photo = new Photo(); $photo->where('is_public', true)->where_related($set)->get(); echo $photo->path; //http://.......images/.... //doesn't call get rules $set->photo->where('is_public', true)->get(); echo $set->photo->path; //images/.... }