Input.php 666 B

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