/** * {@inheritdoc} * * Joins with the channel data table, and eager load channels, fields and fieldtypes * * @param boolean $excludeDeleted * @return \Illuminate\Database\Eloquent\Builder */ public function newQuery($excludeDeleted = true) { $query = parent::newQuery($excludeDeleted); $query->join('channel_data', 'channel_titles.entry_id', '=', 'channel_data.entry_id'); return $query; }