URL.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static string full()
  5. * @method static string current()
  6. * @method static string previous(mixed $fallback = false)
  7. * @method static string previousPath(mixed $fallback = false)
  8. * @method static string to(string $path, mixed $extra = [], bool|null $secure = null)
  9. * @method static string query(string $path, array $query = [], mixed $extra = [], bool|null $secure = null)
  10. * @method static string secure(string $path, array $parameters = [])
  11. * @method static string asset(string $path, bool|null $secure = null)
  12. * @method static string secureAsset(string $path)
  13. * @method static string assetFrom(string $root, string $path, bool|null $secure = null)
  14. * @method static string formatScheme(bool|null $secure = null)
  15. * @method static string signedRoute(\BackedEnum|string $name, mixed $parameters = [], \DateTimeInterface|\DateInterval|int|null $expiration = null, bool $absolute = true)
  16. * @method static string temporarySignedRoute(\BackedEnum|string $name, \DateTimeInterface|\DateInterval|int $expiration, array $parameters = [], bool $absolute = true)
  17. * @method static bool hasValidSignature(\Illuminate\Http\Request $request, bool $absolute = true, \Closure|array $ignoreQuery = [])
  18. * @method static bool hasValidRelativeSignature(\Illuminate\Http\Request $request, \Closure|array $ignoreQuery = [])
  19. * @method static bool hasCorrectSignature(\Illuminate\Http\Request $request, bool $absolute = true, \Closure|array $ignoreQuery = [])
  20. * @method static bool signatureHasNotExpired(\Illuminate\Http\Request $request)
  21. * @method static string route(\BackedEnum|string $name, mixed $parameters = [], bool $absolute = true)
  22. * @method static string toRoute(\Illuminate\Routing\Route $route, mixed $parameters, bool $absolute)
  23. * @method static string action(string|array $action, mixed $parameters = [], bool $absolute = true)
  24. * @method static array formatParameters(mixed $parameters)
  25. * @method static string formatRoot(string $scheme, string|null $root = null)
  26. * @method static string format(string $root, string $path, \Illuminate\Routing\Route|null $route = null)
  27. * @method static bool isValidUrl(string $path)
  28. * @method static void defaults(array $defaults)
  29. * @method static array getDefaultParameters()
  30. * @method static void forceScheme(string|null $scheme)
  31. * @method static void forceHttps(bool $force = true)
  32. * @method static void useOrigin(string|null $root)
  33. * @method static void useAssetOrigin(string|null $root)
  34. * @method static \Illuminate\Routing\UrlGenerator formatHostUsing(\Closure $callback)
  35. * @method static \Illuminate\Routing\UrlGenerator formatPathUsing(\Closure $callback)
  36. * @method static \Closure pathFormatter()
  37. * @method static \Illuminate\Http\Request getRequest()
  38. * @method static void setRequest(\Illuminate\Http\Request $request)
  39. * @method static \Illuminate\Routing\UrlGenerator setRoutes(\Illuminate\Routing\RouteCollectionInterface $routes)
  40. * @method static \Illuminate\Routing\UrlGenerator setSessionResolver(callable $sessionResolver)
  41. * @method static \Illuminate\Routing\UrlGenerator setKeyResolver(callable $keyResolver)
  42. * @method static \Illuminate\Routing\UrlGenerator withKeyResolver(callable $keyResolver)
  43. * @method static \Illuminate\Routing\UrlGenerator resolveMissingNamedRoutesUsing(callable $missingNamedRouteResolver)
  44. * @method static string getRootControllerNamespace()
  45. * @method static \Illuminate\Routing\UrlGenerator setRootControllerNamespace(string $rootNamespace)
  46. * @method static void macro(string $name, object|callable $macro)
  47. * @method static void mixin(object $mixin, bool $replace = true)
  48. * @method static bool hasMacro(string $name)
  49. * @method static void flushMacros()
  50. *
  51. * @see \Illuminate\Routing\UrlGenerator
  52. */
  53. class URL extends Facade
  54. {
  55. /**
  56. * Get the registered name of the component.
  57. *
  58. * @return string
  59. */
  60. protected static function getFacadeAccessor()
  61. {
  62. return 'url';
  63. }
  64. }