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