public function save(Http $http) { $inputs = $http->only($this->options); if (!$this->validate($inputs) || !$this->check($inputs)) { return redirect_response(panel_url('GitContent::settings'))->with('__form_data', $inputs); } update_option($this->optionName, $inputs); Notifier::success('Settings have been saved', true); return redirect_response(panel_url('GitContent::settings')); }