validator; } public function getBanner($params){ $where = []; if(isset($params['module'])){ $where['module'] = $params['module']; } return Banner::where('status','1')->where($where)->get(); } public function getBannerModule(){ return BannerModule::where('status','1')->get(); } }