Session.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static bool shouldBlock()
  5. * @method static string|null blockDriver()
  6. * @method static int defaultRouteBlockLockSeconds()
  7. * @method static int defaultRouteBlockWaitSeconds()
  8. * @method static array getSessionConfig()
  9. * @method static string|null getDefaultDriver()
  10. * @method static void setDefaultDriver(string $name)
  11. * @method static mixed driver(string|null $driver = null)
  12. * @method static \Illuminate\Session\SessionManager extend(string $driver, \Closure $callback)
  13. * @method static array getDrivers()
  14. * @method static \Illuminate\Contracts\Container\Container getContainer()
  15. * @method static \Illuminate\Session\SessionManager setContainer(\Illuminate\Contracts\Container\Container $container)
  16. * @method static \Illuminate\Session\SessionManager forgetDrivers()
  17. * @method static bool start()
  18. * @method static void save()
  19. * @method static void ageFlashData()
  20. * @method static array all()
  21. * @method static array only(array $keys)
  22. * @method static array except(array $keys)
  23. * @method static bool exists(string|array $key)
  24. * @method static bool missing(string|array $key)
  25. * @method static bool has(string|array $key)
  26. * @method static bool hasAny(string|array $key)
  27. * @method static mixed get(string $key, mixed $default = null)
  28. * @method static mixed pull(string $key, mixed $default = null)
  29. * @method static bool hasOldInput(string|null $key = null)
  30. * @method static mixed getOldInput(string|null $key = null, mixed $default = null)
  31. * @method static void replace(array $attributes)
  32. * @method static void put(string|array $key, mixed $value = null)
  33. * @method static mixed remember(string $key, \Closure $callback)
  34. * @method static void push(string $key, mixed $value)
  35. * @method static mixed increment(string $key, int $amount = 1)
  36. * @method static int decrement(string $key, int $amount = 1)
  37. * @method static void flash(string $key, mixed $value = true)
  38. * @method static void now(string $key, mixed $value)
  39. * @method static void reflash()
  40. * @method static void keep(mixed $keys = null)
  41. * @method static void flashInput(array $value)
  42. * @method static \Illuminate\Contracts\Cache\Repository cache()
  43. * @method static mixed remove(string $key)
  44. * @method static void forget(string|array $keys)
  45. * @method static void flush()
  46. * @method static bool invalidate()
  47. * @method static bool regenerate(bool $destroy = false)
  48. * @method static bool migrate(bool $destroy = false)
  49. * @method static bool isStarted()
  50. * @method static string getName()
  51. * @method static void setName(string $name)
  52. * @method static string id()
  53. * @method static string getId()
  54. * @method static void setId(string|null $id)
  55. * @method static bool isValidId(string|null $id)
  56. * @method static void setExists(bool $value)
  57. * @method static string token()
  58. * @method static void regenerateToken()
  59. * @method static bool hasPreviousUri()
  60. * @method static \Illuminate\Support\Uri previousUri()
  61. * @method static string|null previousUrl()
  62. * @method static void setPreviousUrl(string $url)
  63. * @method static string|null previousRoute()
  64. * @method static void setPreviousRoute(string|null $route)
  65. * @method static void passwordConfirmed()
  66. * @method static \SessionHandlerInterface getHandler()
  67. * @method static \SessionHandlerInterface setHandler(\SessionHandlerInterface $handler)
  68. * @method static bool handlerNeedsRequest()
  69. * @method static void setRequestOnHandler(\Illuminate\Http\Request $request)
  70. * @method static void macro(string $name, object|callable $macro)
  71. * @method static void mixin(object $mixin, bool $replace = true)
  72. * @method static bool hasMacro(string $name)
  73. * @method static void flushMacros()
  74. *
  75. * @see \Illuminate\Session\SessionManager
  76. */
  77. class Session extends Facade
  78. {
  79. /**
  80. * Get the registered name of the component.
  81. *
  82. * @return string
  83. */
  84. protected static function getFacadeAccessor()
  85. {
  86. return 'session';
  87. }
  88. }