Session.php 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 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(array|mixed $keys = null)
  41. * @method static void flashInput(array $value)
  42. * @method static mixed remove(string $key)
  43. * @method static void forget(string|array $keys)
  44. * @method static void flush()
  45. * @method static bool invalidate()
  46. * @method static bool regenerate(bool $destroy = false)
  47. * @method static bool migrate(bool $destroy = false)
  48. * @method static bool isStarted()
  49. * @method static string getName()
  50. * @method static void setName(string $name)
  51. * @method static string id()
  52. * @method static string getId()
  53. * @method static void setId(string|null $id)
  54. * @method static bool isValidId(string|null $id)
  55. * @method static void setExists(bool $value)
  56. * @method static string token()
  57. * @method static void regenerateToken()
  58. * @method static string|null previousUrl()
  59. * @method static void setPreviousUrl(string $url)
  60. * @method static void passwordConfirmed()
  61. * @method static \SessionHandlerInterface getHandler()
  62. * @method static \SessionHandlerInterface setHandler(\SessionHandlerInterface $handler)
  63. * @method static bool handlerNeedsRequest()
  64. * @method static void setRequestOnHandler(\Illuminate\Http\Request $request)
  65. * @method static void macro(string $name, object|callable $macro, object|callable $macro = null)
  66. * @method static void mixin(object $mixin, bool $replace = true)
  67. * @method static bool hasMacro(string $name)
  68. * @method static void flushMacros()
  69. *
  70. * @see \Illuminate\Session\SessionManager
  71. */
  72. class Session extends Facade
  73. {
  74. /**
  75. * Get the registered name of the component.
  76. *
  77. * @return string
  78. */
  79. protected static function getFacadeAccessor()
  80. {
  81. return 'session';
  82. }
  83. }