예제 #1
0
파일: Tags.php 프로젝트: surahmans/blogtags
 protected function loadTags()
 {
     $query = Tag::with('posts');
     if (!$this->property('emptyTag')) {
         $query->has('posts', '>=', '1');
     }
     if ($take = intVal($this->property('results'))) {
         $query->take($take);
     }
     $query->listTags($this->property('sortOrder'));
     return $query->get();
 }