src/Http/Traits/HasHttpInput.php
/**
	 * Gets the value of a posted or query parameter with the specified key. Posted values will override query
	 * values.
	 *
	 * @param string|null $default Return value to use if the key is not found.
	 * @return string|null
	 */
Gets the value of a posted or query parameter with the specified key. Posted values will override query
values.

@param string|null $default Return value to use if the key is not found.
@return string|null
Gets the value of a posted or query parameter with the specified key . Posted values will override query values . @param string|null $default Return value to use if the key is not found . @return string|null
public function input($key, $default = null) {
		$input = ($this->post() + $this->query());
		if (isset($input[$key])) {
			return $input[$key];
		}
		return $default;
	}
public function input ( $ key , $ default = null ) { $ input = ( $ this -> post ( ) + $ this -> query ( ) ) ; if ( isset ( $ input [ $ key ] ) ) { return $ input [ $ key ] ; } return $ default ; }
Gets the value of a posted or query parameter with the specified key.
Gets the value of a posted or query parameter with the specified key .