1: <?php namespace Illuminate\Support\Facades;
2:
3: class Input extends Facade {
4:
5: /**
6: * Get an item from the input data.
7: *
8: * This method is used for all request verbs (GET, POST, PUT, and DELETE)
9: *
10: * @param string $key
11: * @param mixed $default
12: * @return mixed
13: */
14: public static function get($key = null, $default = null)
15: {
16: return static::$app['request']->input($key, $default);
17: }
18:
19: /**
20: * Get the registered name of the component.
21: *
22: * @return string
23: */
24: protected static function getFacadeAccessor() { return 'request'; }
25:
26: }