Request.php 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static \Illuminate\Http\Request instance()
  5. * @method static string method()
  6. * @method static string root()
  7. * @method static string url()
  8. * @method static string fullUrl()
  9. * @method static string fullUrlWithQuery(array $query)
  10. * @method static string path()
  11. * @method static string decodedPath()
  12. * @method static string|null segment(int $index, string|null $default = null)
  13. * @method static array segments()
  14. * @method static bool is(...$patterns)
  15. * @method static bool routeIs(...$patterns)
  16. * @method static bool fullUrlIs(...$patterns)
  17. * @method static bool ajax()
  18. * @method static bool pjax()
  19. * @method static bool secure()
  20. * @method static string ip()
  21. * @method static array ips()
  22. * @method static string userAgent()
  23. * @method static \Illuminate\Http\Request merge(array $input)
  24. * @method static \Illuminate\Http\Request replace(array $input)
  25. * @method static \Symfony\Component\HttpFoundation\ParameterBag|mixed json(string $key = null, $default = null)
  26. * @method static \Illuminate\Session\Store session()
  27. * @method static \Illuminate\Session\Store|null getSession()
  28. * @method static void setLaravelSession(\Illuminate\Contracts\Session\Session $session)
  29. * @method static mixed user(string|null $guard = null)
  30. * @method static \Illuminate\Routing\Route|object|string route(string|null $param = null)
  31. * @method static string fingerprint()
  32. * @method static \Illuminate\Http\Request setJson(\Symfony\Component\HttpFoundation\ParameterBag $json)
  33. * @method static \Closure getUserResolver()
  34. * @method static \Illuminate\Http\Request setUserResolver(\Closure $callback)
  35. * @method static \Closure getRouteResolver()
  36. * @method static \Illuminate\Http\Request setRouteResolver(\Closure $callback)
  37. * @method static array toArray()
  38. * @method static bool offsetExists(string $offset)
  39. * @method static mixed offsetGet(string $offset)
  40. * @method static void offsetSet(string $offset, $value)
  41. * @method static void offsetUnset(string $offset)
  42. *
  43. * @see \Illuminate\Http\Request
  44. */
  45. class Request extends Facade
  46. {
  47. /**
  48. * Get the registered name of the component.
  49. *
  50. * @return string
  51. */
  52. protected static function getFacadeAccessor()
  53. {
  54. return 'request';
  55. }
  56. }