예제 #1
0
 public function searchIndex($id)
 {
     if (!empty($id)) {
         $entries = $this->entry->where('project_id', $id);
         if ($entries->count() > 0) {
             return $entries->paginate(5);
         }
     }
 }