/**
  * 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!');
 }
Beispiel #2
0
 /**
  * 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);
 }