|
@@ -27,6 +27,9 @@ class CmsSubjectRepository {
|
|
|
if(isset($request['city_id'])){
|
|
|
$where[] = ['city_id', '=', $request['city_id']];
|
|
|
}
|
|
|
+ if(isset($request['is_open'])){
|
|
|
+ $where[] = ['is_open', '=', $request['is_open']];
|
|
|
+ }
|
|
|
|
|
|
return $this->cmsSubject->where($where)->orderBy('id', 'asc')->paginate($perPage);
|
|
|
|