URL.php 1.6 KB

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