protected function loadArchive() { $this->page['min_date'] = BlogPost::min('published_at'); if ($this->property('parent') == '') { return BlogPost::where('published', 1)->orderBy('published_at', 'desc')->get(); } else { $parent = $this->property('parent'); return BlogPost::where('parent', $parent)->where('published', 1)->orderBy('published_at', 'desc')->get(); } }