duqinya преди 6 години
родител
ревизия
90068445ab
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Repositories/CmsContentTemplateRepository.php

+ 1 - 1
app/Repositories/CmsContentTemplateRepository.php

@@ -32,7 +32,7 @@ class CmsContentTemplateRepository {
                 'status','=',$request['status'],
             ];
         }
-        return $this->cmsContentTemplate->where($where)->where('status',1)->orderBy('id', 'asc')->paginate($perPage);
+        return $this->cmsContentTemplate->where($where)->groupBy('city_id','apply_type')->orderBy('id', 'asc')->paginate($perPage);
 
 
     }