Here is my query:
return $this->mGalleries->with(array('pictures' => function($query){
$query->wherePublished(1)->orderBy('sort');
}))->whereInUse(1)->wherePublished(1)->orderBy('date')->get(array('id', 'title'))->toArray();
I have looked at a question here but no luck.
I have tried the suggested:
$query->select('title')->wherePublished(1)->orderBy('sort');
But all of the fields continue to come out, although title does appear first when I do this.
Any ideas on how to fix this?