Backend\HomeController::postThemeConfig PHP Method

postThemeConfig() public method

Save the settings for the current public theme
public postThemeConfig ( ) : [type]
return [type]
    public function postThemeConfig()
    {
        if (!$this->user->hasAnyAccess(array('config.create', 'config.update'))) {
            App::abort('401');
        }
        $input = Input::all();
        unset($input['_token']);
        $public_theme_id = Setting::value('public_theme');
        foreach ($input as $name => $value) {
            ThemeSetting::saveSetting($name, $value, $public_theme_id);
        }
        return Redirect::back()->with('success_message', trans('success_messages.config_change'));
    }