Session.php 1.3KB

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