src/Http/Traits/HasHttpInput.php
/**
	 * Gets the specified file from the request as an array. If the file does not exist, null is returned.
	 * If the property parameter is specified, the value of that parameter in the file is returned. If the
	 * parameter does not exist, null is returned.
	 *
	 * @return UploadedFile|mixed|null
	 */
Gets the specified file from the request as an array. If the file does not exist, null is returned.
If the property parameter is specified, the value of that parameter in the file is returned. If the
parameter does not exist, null is returned.


Gets the specified file from the request as an array . If the file does not exist null is returned . If the property parameter is specified the value of that parameter in the file is returned . If the parameter does not exist null is returned .
public function file($key, $property = null) {
		$file = $this->files->get($key, null);
		if (!is_null($property) && is_array($file)) {
			if (isset($file[$property])) {
				return $file[$property];
			}
			return null;
		}
		return $file;
	}
public function file ( $ key , $ property = null ) { $ file = $ this -> files -> get ( $ key , null ) ; if ( ! is_null ( $ property ) && is_array ( $ file ) ) { if ( isset ( $ file [ $ property ] ) ) { return $ file [ $ property ] ; } return null ; } return $ file ; }
Gets the specified file from the request as an array.
Gets the specified file from the request as an array .