Session.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static \SessionHandlerInterface getHandler()
  5. * @method static array all()
  6. * @method static bool exists(string|array $key)
  7. * @method static bool handlerNeedsRequest()
  8. * @method static bool has(string|array $key)
  9. * @method static bool isStarted()
  10. * @method static bool migrate(bool $destroy = false)
  11. * @method static bool save()
  12. * @method static bool start()
  13. * @method static mixed get(string $key, $default = null)
  14. * @method static mixed flash(string $key, $value = true)
  15. * @method static mixed pull(string $key, $default = null)
  16. * @method static mixed remove(string $key)
  17. * @method static string getId()
  18. * @method static string getName()
  19. * @method static string token()
  20. * @method static string|null previousUrl()
  21. * @method static void flush()
  22. * @method static void forget(string|array $keys)
  23. * @method static void push(string $key, mixed $value)
  24. * @method static void put(string|array $key, $value = null)
  25. * @method static void setId(string $id)
  26. * @method static void setPreviousUrl(string $url)
  27. * @method static void setRequestOnHandler(\Illuminate\Http\Request $request)
  28. *
  29. * @see \Illuminate\Session\SessionManager
  30. * @see \Illuminate\Session\Store
  31. */
  32. class Session extends Facade
  33. {
  34. /**
  35. * Get the registered name of the component.
  36. *
  37. * @return string
  38. */
  39. protected static function getFacadeAccessor()
  40. {
  41. return 'session';
  42. }
  43. }