Session.php 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 mixed get(string $key, mixed $default = null)
  27. * @method static mixed pull(string $key, mixed $default = null)
  28. * @method static bool hasOldInput(string|null $key = null)
  29. * @method static mixed getOldInput(string|null $key = null, mixed $default = null)
  30. * @method static void replace(array $attributes)
  31. * @method static void put(string|array $key, mixed $value = null)
  32. * @method static mixed remember(string $key, \Closure $callback)
  33. * @method static void push(string $key, mixed $value)
  34. * @method static mixed increment(string $key, int $amount = 1)
  35. * @method static int decrement(string $key, int $amount = 1)
  36. * @method static void flash(string $key, mixed $value = true)
  37. * @method static void now(string $key, mixed $value)
  38. * @method static void reflash()
  39. * @method static void keep(array|mixed $keys = null)
  40. * @method static void flashInput(array $value)
  41. * @method static mixed remove(string $key)
  42. * @method static void forget(string|array $keys)
  43. * @method static void flush()
  44. * @method static bool invalidate()
  45. * @method static bool regenerate(bool $destroy = false)
  46. * @method static bool migrate(bool $destroy = false)
  47. * @method static bool isStarted()
  48. * @method static string getName()
  49. * @method static void setName(string $name)
  50. * @method static string getId()
  51. * @method static void setId(string|null $id)
  52. * @method static bool isValidId(string|null $id)
  53. * @method static void setExists(bool $value)
  54. * @method static string token()
  55. * @method static void regenerateToken()
  56. * @method static string|null previousUrl()
  57. * @method static void setPreviousUrl(string $url)
  58. * @method static void passwordConfirmed()
  59. * @method static \SessionHandlerInterface getHandler()
  60. * @method static \SessionHandlerInterface setHandler(\SessionHandlerInterface $handler)
  61. * @method static bool handlerNeedsRequest()
  62. * @method static void setRequestOnHandler(\Illuminate\Http\Request $request)
  63. * @method static void macro(string $name, object|callable $macro)
  64. * @method static void mixin(object $mixin, bool $replace = true)
  65. * @method static bool hasMacro(string $name)
  66. * @method static void flushMacros()
  67. *
  68. * @see \Illuminate\Session\SessionManager
  69. */
  70. class Session extends Facade
  71. {
  72. /**
  73. * Get the registered name of the component.
  74. *
  75. * @return string
  76. */
  77. protected static function getFacadeAccessor()
  78. {
  79. return 'session';
  80. }
  81. }