Ejemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index(Request $request)
 {
     $data = ['s_name' => $request->input('s_name'), 's_value' => $request->input('s_value')];
     $types = $this->setting->index($data, '', Cache::get('page_size', '10'));
     //注意,第二个参数不为'setting',取的是SettingType模型
     return view('back.setting_type.index', compact('types'));
 }
Ejemplo n.º 2
0
 public function index(Request $request)
 {
     $data = ['s_name' => $request->input('s_name'), 's_value' => $request->input('s_value')];
     $settings = $this->setting->index($data, 'setting', Cache::get('page_size', '10'));
     return view('back.setting.index', compact('settings'));
 }