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