| 148 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
namespace Illuminate\Support\Facades;
|
|
|
4 |
|
|
|
5 |
/**
|
|
|
6 |
* @method static \Illuminate\Http\Request capture()
|
|
|
7 |
* @method static \Illuminate\Http\Request instance()
|
|
|
8 |
* @method static string method()
|
|
|
9 |
* @method static string root()
|
|
|
10 |
* @method static string url()
|
|
|
11 |
* @method static string fullUrl()
|
|
|
12 |
* @method static string fullUrlWithQuery(array $query)
|
|
|
13 |
* @method static string fullUrlWithoutQuery(array|string $keys)
|
|
|
14 |
* @method static string path()
|
|
|
15 |
* @method static string decodedPath()
|
|
|
16 |
* @method static string|null segment(int $index, string|null $default = null)
|
|
|
17 |
* @method static array segments()
|
|
|
18 |
* @method static bool is(mixed ...$patterns)
|
|
|
19 |
* @method static bool routeIs(mixed ...$patterns)
|
|
|
20 |
* @method static bool fullUrlIs(mixed ...$patterns)
|
|
|
21 |
* @method static string host()
|
|
|
22 |
* @method static string httpHost()
|
|
|
23 |
* @method static string schemeAndHttpHost()
|
|
|
24 |
* @method static bool ajax()
|
|
|
25 |
* @method static bool pjax()
|
|
|
26 |
* @method static bool prefetch()
|
|
|
27 |
* @method static bool secure()
|
|
|
28 |
* @method static string|null ip()
|
|
|
29 |
* @method static array ips()
|
|
|
30 |
* @method static string|null userAgent()
|
|
|
31 |
* @method static \Illuminate\Http\Request merge(array $input)
|
|
|
32 |
* @method static \Illuminate\Http\Request mergeIfMissing(array $input)
|
|
|
33 |
* @method static \Illuminate\Http\Request replace(array $input)
|
|
|
34 |
* @method static mixed get(string $key, mixed $default = null)
|
|
|
35 |
* @method static \Symfony\Component\HttpFoundation\ParameterBag|mixed json(string|null $key = null, mixed $default = null)
|
|
|
36 |
* @method static \Illuminate\Http\Request createFrom(\Illuminate\Http\Request $from, \Illuminate\Http\Request|null $to = null)
|
|
|
37 |
* @method static \Illuminate\Http\Request createFromBase(\Symfony\Component\HttpFoundation\Request $request)
|
| 991 |
lars |
38 |
* @method static \Illuminate\Http\Request duplicate(array|null $query = null, array|null $request = null, array|null $attributes = null, array|null $cookies = null, array|null $files = null, array|null $server = null)
|
| 148 |
lars |
39 |
* @method static bool hasSession(bool $skipIfUninitialized = false)
|
|
|
40 |
* @method static \Symfony\Component\HttpFoundation\Session\SessionInterface getSession()
|
|
|
41 |
* @method static \Illuminate\Contracts\Session\Session session()
|
|
|
42 |
* @method static void setLaravelSession(\Illuminate\Contracts\Session\Session $session)
|
|
|
43 |
* @method static void setRequestLocale(string $locale)
|
|
|
44 |
* @method static void setDefaultRequestLocale(string $locale)
|
|
|
45 |
* @method static mixed user(string|null $guard = null)
|
|
|
46 |
* @method static \Illuminate\Routing\Route|object|string|null route(string|null $param = null, mixed $default = null)
|
|
|
47 |
* @method static string fingerprint()
|
|
|
48 |
* @method static \Illuminate\Http\Request setJson(\Symfony\Component\HttpFoundation\ParameterBag $json)
|
|
|
49 |
* @method static \Closure getUserResolver()
|
|
|
50 |
* @method static \Illuminate\Http\Request setUserResolver(\Closure $callback)
|
|
|
51 |
* @method static \Closure getRouteResolver()
|
|
|
52 |
* @method static \Illuminate\Http\Request setRouteResolver(\Closure $callback)
|
|
|
53 |
* @method static array toArray()
|
|
|
54 |
* @method static void initialize(array $query = [], array $request = [], array $attributes = [], array $cookies = [], array $files = [], array $server = [], string|resource|null $content = null)
|
|
|
55 |
* @method static \static createFromGlobals()
|
|
|
56 |
* @method static \static create(string $uri, string $method = 'GET', array $parameters = [], array $cookies = [], array $files = [], array $server = [], string|resource|null $content = null)
|
|
|
57 |
* @method static void setFactory(callable|null $callable)
|
|
|
58 |
* @method static void overrideGlobals()
|
|
|
59 |
* @method static void setTrustedProxies(array $proxies, int $trustedHeaderSet)
|
|
|
60 |
* @method static string[] getTrustedProxies()
|
|
|
61 |
* @method static int getTrustedHeaderSet()
|
|
|
62 |
* @method static void setTrustedHosts(array $hostPatterns)
|
|
|
63 |
* @method static string[] getTrustedHosts()
|
|
|
64 |
* @method static string normalizeQueryString(string|null $qs)
|
|
|
65 |
* @method static void enableHttpMethodParameterOverride()
|
|
|
66 |
* @method static bool getHttpMethodParameterOverride()
|
|
|
67 |
* @method static bool hasPreviousSession()
|
|
|
68 |
* @method static void setSession(\Symfony\Component\HttpFoundation\Session\SessionInterface $session)
|
|
|
69 |
* @method static array getClientIps()
|
|
|
70 |
* @method static string|null getClientIp()
|
|
|
71 |
* @method static string getScriptName()
|
|
|
72 |
* @method static string getPathInfo()
|
|
|
73 |
* @method static string getBasePath()
|
|
|
74 |
* @method static string getBaseUrl()
|
|
|
75 |
* @method static string getScheme()
|
|
|
76 |
* @method static int|string|null getPort()
|
|
|
77 |
* @method static string|null getUser()
|
|
|
78 |
* @method static string|null getPassword()
|
|
|
79 |
* @method static string|null getUserInfo()
|
|
|
80 |
* @method static string getHttpHost()
|
|
|
81 |
* @method static string getRequestUri()
|
|
|
82 |
* @method static string getSchemeAndHttpHost()
|
|
|
83 |
* @method static string getUri()
|
|
|
84 |
* @method static string getUriForPath(string $path)
|
|
|
85 |
* @method static string getRelativeUriForPath(string $path)
|
|
|
86 |
* @method static string|null getQueryString()
|
|
|
87 |
* @method static bool isSecure()
|
|
|
88 |
* @method static string getHost()
|
|
|
89 |
* @method static void setMethod(string $method)
|
|
|
90 |
* @method static string getMethod()
|
|
|
91 |
* @method static string getRealMethod()
|
|
|
92 |
* @method static string|null getMimeType(string $format)
|
|
|
93 |
* @method static string[] getMimeTypes(string $format)
|
|
|
94 |
* @method static string|null getFormat(string|null $mimeType)
|
|
|
95 |
* @method static void setFormat(string|null $format, string|string[] $mimeTypes)
|
|
|
96 |
* @method static string|null getRequestFormat(string|null $default = 'html')
|
|
|
97 |
* @method static void setRequestFormat(string|null $format)
|
|
|
98 |
* @method static string|null getContentTypeFormat()
|
|
|
99 |
* @method static void setDefaultLocale(string $locale)
|
|
|
100 |
* @method static string getDefaultLocale()
|
|
|
101 |
* @method static void setLocale(string $locale)
|
|
|
102 |
* @method static string getLocale()
|
|
|
103 |
* @method static bool isMethod(string $method)
|
|
|
104 |
* @method static bool isMethodSafe()
|
|
|
105 |
* @method static bool isMethodIdempotent()
|
|
|
106 |
* @method static bool isMethodCacheable()
|
|
|
107 |
* @method static string|null getProtocolVersion()
|
|
|
108 |
* @method static string|resource getContent(bool $asResource = false)
|
|
|
109 |
* @method static array getETags()
|
|
|
110 |
* @method static bool isNoCache()
|
|
|
111 |
* @method static string|null getPreferredFormat(string|null $default = 'html')
|
|
|
112 |
* @method static string|null getPreferredLanguage(string[] $locales = null)
|
|
|
113 |
* @method static string[] getLanguages()
|
|
|
114 |
* @method static string[] getCharsets()
|
|
|
115 |
* @method static string[] getEncodings()
|
|
|
116 |
* @method static string[] getAcceptableContentTypes()
|
|
|
117 |
* @method static bool isXmlHttpRequest()
|
|
|
118 |
* @method static bool preferSafeContent()
|
|
|
119 |
* @method static bool isFromTrustedProxy()
|
|
|
120 |
* @method static array filterPrecognitiveRules(array $rules)
|
|
|
121 |
* @method static bool isAttemptingPrecognition()
|
|
|
122 |
* @method static bool isPrecognitive()
|
|
|
123 |
* @method static bool isJson()
|
|
|
124 |
* @method static bool expectsJson()
|
|
|
125 |
* @method static bool wantsJson()
|
|
|
126 |
* @method static bool accepts(string|array $contentTypes)
|
|
|
127 |
* @method static string|null prefers(string|array $contentTypes)
|
|
|
128 |
* @method static bool acceptsAnyContentType()
|
|
|
129 |
* @method static bool acceptsJson()
|
|
|
130 |
* @method static bool acceptsHtml()
|
|
|
131 |
* @method static bool matchesType(string $actual, string $type)
|
|
|
132 |
* @method static string format(string $default = 'html')
|
|
|
133 |
* @method static string|array|null old(string|null $key = null, \Illuminate\Database\Eloquent\Model|string|array|null $default = null)
|
|
|
134 |
* @method static void flash()
|
|
|
135 |
* @method static void flashOnly(array|mixed $keys)
|
|
|
136 |
* @method static void flashExcept(array|mixed $keys)
|
|
|
137 |
* @method static void flush()
|
|
|
138 |
* @method static string|array|null server(string|null $key = null, string|array|null $default = null)
|
|
|
139 |
* @method static bool hasHeader(string $key)
|
|
|
140 |
* @method static string|array|null header(string|null $key = null, string|array|null $default = null)
|
|
|
141 |
* @method static string|null bearerToken()
|
|
|
142 |
* @method static bool exists(string|array $key)
|
|
|
143 |
* @method static bool has(string|array $key)
|
|
|
144 |
* @method static bool hasAny(string|array $keys)
|
|
|
145 |
* @method static \Illuminate\Http\Request|mixed whenHas(string $key, callable $callback, callable|null $default = null)
|
|
|
146 |
* @method static bool filled(string|array $key)
|
|
|
147 |
* @method static bool isNotFilled(string|array $key)
|
|
|
148 |
* @method static bool anyFilled(string|array $keys)
|
|
|
149 |
* @method static \Illuminate\Http\Request|mixed whenFilled(string $key, callable $callback, callable|null $default = null)
|
|
|
150 |
* @method static bool missing(string|array $key)
|
|
|
151 |
* @method static \Illuminate\Http\Request|mixed whenMissing(string $key, callable $callback, callable|null $default = null)
|
|
|
152 |
* @method static array keys()
|
|
|
153 |
* @method static array all(array|mixed|null $keys = null)
|
|
|
154 |
* @method static mixed input(string|null $key = null, mixed $default = null)
|
|
|
155 |
* @method static \Illuminate\Support\Stringable str(string $key, mixed $default = null)
|
|
|
156 |
* @method static \Illuminate\Support\Stringable string(string $key, mixed $default = null)
|
|
|
157 |
* @method static bool boolean(string|null $key = null, bool $default = false)
|
|
|
158 |
* @method static int integer(string $key, int $default = 0)
|
|
|
159 |
* @method static float float(string $key, float $default = 0)
|
|
|
160 |
* @method static \Illuminate\Support\Carbon|null date(string $key, string|null $format = null, string|null $tz = null)
|
|
|
161 |
* @method static object|null enum(string $key, string $enumClass)
|
|
|
162 |
* @method static \Illuminate\Support\Collection collect(array|string|null $key = null)
|
|
|
163 |
* @method static array only(array|mixed $keys)
|
|
|
164 |
* @method static array except(array|mixed $keys)
|
|
|
165 |
* @method static string|array|null query(string|null $key = null, string|array|null $default = null)
|
|
|
166 |
* @method static string|array|null post(string|null $key = null, string|array|null $default = null)
|
|
|
167 |
* @method static bool hasCookie(string $key)
|
|
|
168 |
* @method static string|array|null cookie(string|null $key = null, string|array|null $default = null)
|
|
|
169 |
* @method static array allFiles()
|
|
|
170 |
* @method static bool hasFile(string $key)
|
|
|
171 |
* @method static \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null file(string|null $key = null, mixed $default = null)
|
|
|
172 |
* @method static never dd(mixed ...$keys)
|
|
|
173 |
* @method static \Illuminate\Http\Request dump(mixed $keys = [])
|
|
|
174 |
* @method static void macro(string $name, object|callable $macro)
|
|
|
175 |
* @method static void mixin(object $mixin, bool $replace = true)
|
|
|
176 |
* @method static bool hasMacro(string $name)
|
|
|
177 |
* @method static void flushMacros()
|
|
|
178 |
* @method static array validate(array $rules, ...$params)
|
|
|
179 |
* @method static array validateWithBag(string $errorBag, array $rules, ...$params)
|
|
|
180 |
* @method static bool hasValidSignature(bool $absolute = true)
|
|
|
181 |
*
|
|
|
182 |
* @see \Illuminate\Http\Request
|
|
|
183 |
*/
|
|
|
184 |
class Request extends Facade
|
|
|
185 |
{
|
|
|
186 |
/**
|
|
|
187 |
* Get the registered name of the component.
|
|
|
188 |
*
|
|
|
189 |
* @return string
|
|
|
190 |
*/
|
|
|
191 |
protected static function getFacadeAccessor()
|
|
|
192 |
{
|
|
|
193 |
return 'request';
|
|
|
194 |
}
|
|
|
195 |
}
|