コード例 #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param \Illuminate\Http\Request $request
  *
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     $config = new Configuration();
     $config_id = $request->input('config_id');
     $config_id = $config->saveData($request, $config_id);
     return redirect()->route('cpanel.config.index')->with('status', 'Configuration updated!');
 }
コード例 #2
0
ファイル: Controller.php プロジェクト: dungnh/survey_online
 /**
  * Construct
  */
 public function __construct()
 {
     $info_user = User::find(Auth::id());
     $list_language = AppLanguage::all();
     $setting_title = Configuration::first();
     if ($setting_title) {
         $setting_title = unserialize($setting_title->properties)['title'];
     }
     View::share('list_language', $list_language);
     View::share('info_user', $info_user);
     View::share('title_all', $setting_title);
 }