sanitize(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return Group::$rules; } public function sanitize() { $input = $this->all(); $input['name'] = isset($input['name']) ? htmlspecialchars($input['name']) : ''; $input['description'] = isset($input['description']) ? htmlspecialchars($input['description']) : ''; $this->replace($input); } }