user()->can('edit', $this->group_setting); } public function rules() { $rules['settings'] = new ValidClientGroupSettingsRule(); return $rules; } protected function prepareForValidation() { $input = $this->all(); $this->replace($input); } }