includes/helpers.php
/**
	 * Returns the current request instance or an input value if the first parameter is specified.
	 *
	 * @param string|null $input
	 * @param mixed|null $default
	 * @return \Horizon\Http\Request|string|null
	 */
Returns the current request instance or an input value if the first parameter is specified.
@param string|null $input
@param mixed|null $default
@return \Horizon\Http\Request|string|null
Returns the current request instance or an input value if the first parameter is specified . @param string|null $input @param mixed|null $default @return \ Horizon \ Http \ Request|string|null
function request($input = null, $default = null) {
		$request = Application::kernel()->http()->request();
		if (!is_null($input)) {
			return $request->input($input, $default);
		}
		return $request;
	}
function request ( $ input = null , $ default = null ) { $ request = Application :: kernel ( ) -> http ( ) -> request ( ) ; if ( ! is_null ( $ input ) ) { return $ request -> input ( $ input , $ default ) ; } return $ request ; }
Returns the current request instance or an input value if the first parameter is specified.
Returns the current request instance or an input value if the first parameter is specified .