URL.php 1.3KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static string current()
  5. * @method static string full()
  6. * @method static string previous($fallback = false)
  7. * @method static string to(string $path, $extra = [], bool $secure = null)
  8. * @method static string secure(string $path, array $parameters = [])
  9. * @method static string asset(string $path, bool $secure = null)
  10. * @method static string route(string $name, $parameters = [], bool $absolute = true)
  11. * @method static string action(string $action, $parameters = [], bool $absolute = true)
  12. * @method static \Illuminate\Contracts\Routing\UrlGenerator setRootControllerNamespace(string $rootNamespace)
  13. * @method static string signedRoute(string $name, array $parameters = [], \DateTimeInterface|int $expiration = null)
  14. * @method static string temporarySignedRoute(string $name, \DateTimeInterface|int $expiration, array $parameters = [])
  15. * @method static string hasValidSignature(\Illuminate\Http\Request $request)
  16. * @method static void defaults(array $defaults)
  17. *
  18. * @see \Illuminate\Routing\UrlGenerator
  19. */
  20. class URL extends Facade
  21. {
  22. /**
  23. * Get the registered name of the component.
  24. *
  25. * @return string
  26. */
  27. protected static function getFacadeAccessor()
  28. {
  29. return 'url';
  30. }
  31. }