user()->isAdmin(); } public function rules() { $this->sanitize(); $rules = []; return $rules; } public function sanitize() { $input = $this->all(); $input['config'] = encrypt($input['config']); $this->replace($input); return $this->all(); } }