protected function saveFromRequest(array $pairs = []): self 	{ 		foreach ($pairs as $key => $options) { 			$inputs = $this->request->hasFile($key) ? $this->request->file($key) : $this->request->input($key);  			if (empty($inputs)) { 				continue; 			}  			if (!is_array($inputs)) { 				$inputs = [$inputs]; 			}  			foreach ($inputs as $input) { 				if (is_object($input)) { 					$this->saveFromFileUpload($input, $options); 				} elseif (is_resource($input)) { 					$this->saveFromStream($input, $options); 				} elseif (is_string($input)) { 					if (filter_var($input, FILTER_VALIDATE_URL)) { 						$this->saveFromUrl($input, $options); 					} elseif (base64_decode($input)) { 						$this->saveFromBase64($input, $options); 					} else { 						$this->saveFromString($input, $options); 					} 				} 			} 		}  		$this->model->unsetRelation('media');  		return $this; 	}