public function update($current)
	{
		$this->validate();

		if ($this->files()->isEmpty()) {
			return $this->currentPictures($current);
		}

		$result = $this->mapUpdatedPictures($current);

		if (count($result) == 1 && is_array($result[0])) {
			return $result[0];
		}

		return $result;
	}
public function update($current)
	{
		$this->validate();

		if ($this->files()->isEmpty()) {
			return $this->currentPictures($current);
		}

		$result = $this->mapUpdatedPictures($current);

		if (count($result) == 1 && is_array($result[0])) {
			return $result[0];
		}

		return $result;
	}
public function update ( $ current ) { $ this -> validate ( ) ; if ( $ this -> files ( ) -> isEmpty ( ) ) { return $ this -> currentPictures ( $ current ) ; } $ result = $ this -> mapUpdatedPictures ( $ current ) ; if ( count ( $ result ) == 1 && is_array ( $ result [ 0 ] ) ) { return $ result [ 0 ] ; } return $ result ; }
Update the given pictures.

@param  Collection $current

@return string|array
Update the given pictures .