duqinya hace 6 años
padre
commit
90068445ab
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
 
 
     }