1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,114 +0,0 @@ |
1 |
-<?php |
|
2 |
- |
|
3 |
-namespace Illuminate\Support\Facades; |
|
4 |
- |
|
5 |
-/** |
|
6 |
- * @method static bool matchesType(string $actual, string $type) |
|
7 |
- * @method static bool isJson() |
|
8 |
- * @method static bool expectsJson() |
|
9 |
- * @method static bool wantsJson() |
|
10 |
- * @method static bool accepts(string|array $contentTypes) |
|
11 |
- * @method static bool prefers(string|array $contentTypes) |
|
12 |
- * @method static bool acceptsAnyContentType() |
|
13 |
- * @method static bool acceptsJson() |
|
14 |
- * @method static bool acceptsHtml() |
|
15 |
- * @method static string format($default = 'html') |
|
16 |
- * @method static string|array old(string|null $key = null, string|array|null $default = null) |
|
17 |
- * @method static void flash() |
|
18 |
- * @method static void flashOnly(array|mixed $keys) |
|
19 |
- * @method static void flashExcept(array|mixed $keys) |
|
20 |
- * @method static void flush() |
|
21 |
- * @method static string|array|null server(string|null $key = null, string|array|null $default = null) |
|
22 |
- * @method static bool hasHeader(string $key) |
|
23 |
- * @method static string|array|null header(string|null $key = null, string|array|null $default = null) |
|
24 |
- * @method static string|null bearerToken() |
|
25 |
- * @method static bool exists(string|array $key) |
|
26 |
- * @method static bool has(string|array $key) |
|
27 |
- * @method static bool hasAny(string|array $key) |
|
28 |
- * @method static bool filled(string|array $key) |
|
29 |
- * @method static bool anyFilled(string|array $key) |
|
30 |
- * @method static array keys() |
|
31 |
- * @method static array all(array|mixed|null $keys = null) |
|
32 |
- * @method static string|array|null input(string|null $key = null, string|array|null $default = null) |
|
33 |
- * @method static array only(array|mixed $keys) |
|
34 |
- * @method static array except(array|mixed $keys) |
|
35 |
- * @method static string|array|null query(string|null $key = null, string|array|null $default = null) |
|
36 |
- * @method static string|array|null post(string|null $key = null, string|array|null $default = null) |
|
37 |
- * @method static bool hasCookie(string $key) |
|
38 |
- * @method static string|array|null cookie(string|null $key = null, string|array|null $default = null) |
|
39 |
- * @method static array allFiles() |
|
40 |
- * @method static bool hasFile(string $key) |
|
41 |
- * @method static \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null file(string|null $key = null, mixed $default = null) |
|
42 |
- * @method static \Illuminate\Http\Request capture() |
|
43 |
- * @method static \Illuminate\Http\Request instance() |
|
44 |
- * @method static string method() |
|
45 |
- * @method static string root() |
|
46 |
- * @method static string url() |
|
47 |
- * @method static string fullUrl() |
|
48 |
- * @method static string fullUrlWithQuery(array $query) |
|
49 |
- * @method static string path() |
|
50 |
- * @method static string decodedPath() |
|
51 |
- * @method static string|null segment(int $index, string|null $default = null) |
|
52 |
- * @method static array segments() |
|
53 |
- * @method static bool is(mixed ...$patterns) |
|
54 |
- * @method static bool routeIs(mixed ...$patterns) |
|
55 |
- * @method static bool fullUrlIs(mixed ...$patterns) |
|
56 |
- * @method static bool ajax() |
|
57 |
- * @method static bool pjax() |
|
58 |
- * @method static bool prefetch() |
|
59 |
- * @method static bool secure() |
|
60 |
- * @method static string|null ip() |
|
61 |
- * @method static array ips() |
|
62 |
- * @method static string userAgent() |
|
63 |
- * @method static \Illuminate\Http\Request merge(array $input) |
|
64 |
- * @method static \Illuminate\Http\Request replace(array $input) |
|
65 |
- * @method static \Symfony\Component\HttpFoundation\ParameterBag|mixed json(string|null $key = null, mixed $default = null) |
|
66 |
- * @method static \Illuminate\Http\Request createFrom(\Illuminate\Http\Request $from, \Illuminate\Http\Request|null $to = null) |
|
67 |
- * @method static \Illuminate\Http\Request createFromBase(\Symfony\Component\HttpFoundation\Request $request) |
|
68 |
- * @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) |
|
69 |
- * @method static mixed filterFiles(mixed $files) |
|
70 |
- * @method static \Illuminate\Session\Store session() |
|
71 |
- * @method static \Illuminate\Session\Store|null getSession() |
|
72 |
- * @method static void setLaravelSession(\Illuminate\Contracts\Session\Session $session) |
|
73 |
- * @method static mixed user(string|null $guard = null) |
|
74 |
- * @method static \Illuminate\Routing\Route|object|string route(string|null $param = null, string|null $default = null) |
|
75 |
- * @method static string fingerprint() |
|
76 |
- * @method static \Illuminate\Http\Request setJson(\Symfony\Component\HttpFoundation\ParameterBag $json) |
|
77 |
- * @method static \Closure getUserResolver() |
|
78 |
- * @method static \Illuminate\Http\Request setUserResolver(\Closure $callback) |
|
79 |
- * @method static \Closure getRouteResolver() |
|
80 |
- * @method static \Illuminate\Http\Request setRouteResolver(\Closure $callback) |
|
81 |
- * @method static array toArray() |
|
82 |
- * @method static bool offsetExists(string $offset) |
|
83 |
- * @method static mixed offsetGet(string $offset) |
|
84 |
- * @method static void offsetSet(string $offset, mixed $value) |
|
85 |
- * @method static void offsetUnset(string $offset) |
|
86 |
- * |
|
87 |
- * @see \Illuminate\Http\Request |
|
88 |
- */ |
|
89 |
-class Input extends Facade |
|
90 |
-{ |
|
91 |
- /** |
|
92 |
- * Get an item from the input data. |
|
93 |
- * |
|
94 |
- * This method is used for all request verbs (GET, POST, PUT, and DELETE) |
|
95 |
- * |
|
96 |
- * @param string|null $key |
|
97 |
- * @param mixed $default |
|
98 |
- * @return mixed |
|
99 |
- */ |
|
100 |
- public static function get($key = null, $default = null) |
|
101 |
- { |
|
102 |
- return static::$app['request']->input($key, $default); |
|
103 |
- } |
|
104 |
- |
|
105 |
- /** |
|
106 |
- * Get the registered name of the component. |
|
107 |
- * |
|
108 |
- * @return string |
|
109 |
- */ |
|
110 |
- protected static function getFacadeAccessor() |
|
111 |
- { |
|
112 |
- return 'request'; |
|
113 |
- } |
|
114 |
-} |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,114 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+namespace Illuminate\Support\Facades; |
|
4 |
+ |
|
5 |
+/** |
|
6 |
+ * @method static bool matchesType(string $actual, string $type) |
|
7 |
+ * @method static bool isJson() |
|
8 |
+ * @method static bool expectsJson() |
|
9 |
+ * @method static bool wantsJson() |
|
10 |
+ * @method static bool accepts(string|array $contentTypes) |
|
11 |
+ * @method static bool prefers(string|array $contentTypes) |
|
12 |
+ * @method static bool acceptsAnyContentType() |
|
13 |
+ * @method static bool acceptsJson() |
|
14 |
+ * @method static bool acceptsHtml() |
|
15 |
+ * @method static string format($default = 'html') |
|
16 |
+ * @method static string|array old(string|null $key = null, string|array|null $default = null) |
|
17 |
+ * @method static void flash() |
|
18 |
+ * @method static void flashOnly(array|mixed $keys) |
|
19 |
+ * @method static void flashExcept(array|mixed $keys) |
|
20 |
+ * @method static void flush() |
|
21 |
+ * @method static string|array|null server(string|null $key = null, string|array|null $default = null) |
|
22 |
+ * @method static bool hasHeader(string $key) |
|
23 |
+ * @method static string|array|null header(string|null $key = null, string|array|null $default = null) |
|
24 |
+ * @method static string|null bearerToken() |
|
25 |
+ * @method static bool exists(string|array $key) |
|
26 |
+ * @method static bool has(string|array $key) |
|
27 |
+ * @method static bool hasAny(string|array $key) |
|
28 |
+ * @method static bool filled(string|array $key) |
|
29 |
+ * @method static bool anyFilled(string|array $key) |
|
30 |
+ * @method static array keys() |
|
31 |
+ * @method static array all(array|mixed|null $keys = null) |
|
32 |
+ * @method static string|array|null input(string|null $key = null, string|array|null $default = null) |
|
33 |
+ * @method static array only(array|mixed $keys) |
|
34 |
+ * @method static array except(array|mixed $keys) |
|
35 |
+ * @method static string|array|null query(string|null $key = null, string|array|null $default = null) |
|
36 |
+ * @method static string|array|null post(string|null $key = null, string|array|null $default = null) |
|
37 |
+ * @method static bool hasCookie(string $key) |
|
38 |
+ * @method static string|array|null cookie(string|null $key = null, string|array|null $default = null) |
|
39 |
+ * @method static array allFiles() |
|
40 |
+ * @method static bool hasFile(string $key) |
|
41 |
+ * @method static \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null file(string|null $key = null, mixed $default = null) |
|
42 |
+ * @method static \Illuminate\Http\Request capture() |
|
43 |
+ * @method static \Illuminate\Http\Request instance() |
|
44 |
+ * @method static string method() |
|
45 |
+ * @method static string root() |
|
46 |
+ * @method static string url() |
|
47 |
+ * @method static string fullUrl() |
|
48 |
+ * @method static string fullUrlWithQuery(array $query) |
|
49 |
+ * @method static string path() |
|
50 |
+ * @method static string decodedPath() |
|
51 |
+ * @method static string|null segment(int $index, string|null $default = null) |
|
52 |
+ * @method static array segments() |
|
53 |
+ * @method static bool is(mixed ...$patterns) |
|
54 |
+ * @method static bool routeIs(mixed ...$patterns) |
|
55 |
+ * @method static bool fullUrlIs(mixed ...$patterns) |
|
56 |
+ * @method static bool ajax() |
|
57 |
+ * @method static bool pjax() |
|
58 |
+ * @method static bool prefetch() |
|
59 |
+ * @method static bool secure() |
|
60 |
+ * @method static string|null ip() |
|
61 |
+ * @method static array ips() |
|
62 |
+ * @method static string userAgent() |
|
63 |
+ * @method static \Illuminate\Http\Request merge(array $input) |
|
64 |
+ * @method static \Illuminate\Http\Request replace(array $input) |
|
65 |
+ * @method static \Symfony\Component\HttpFoundation\ParameterBag|mixed json(string|null $key = null, mixed $default = null) |
|
66 |
+ * @method static \Illuminate\Http\Request createFrom(\Illuminate\Http\Request $from, \Illuminate\Http\Request|null $to = null) |
|
67 |
+ * @method static \Illuminate\Http\Request createFromBase(\Symfony\Component\HttpFoundation\Request $request) |
|
68 |
+ * @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) |
|
69 |
+ * @method static mixed filterFiles(mixed $files) |
|
70 |
+ * @method static \Illuminate\Session\Store session() |
|
71 |
+ * @method static \Illuminate\Session\Store|null getSession() |
|
72 |
+ * @method static void setLaravelSession(\Illuminate\Contracts\Session\Session $session) |
|
73 |
+ * @method static mixed user(string|null $guard = null) |
|
74 |
+ * @method static \Illuminate\Routing\Route|object|string route(string|null $param = null, string|null $default = null) |
|
75 |
+ * @method static string fingerprint() |
|
76 |
+ * @method static \Illuminate\Http\Request setJson(\Symfony\Component\HttpFoundation\ParameterBag $json) |
|
77 |
+ * @method static \Closure getUserResolver() |
|
78 |
+ * @method static \Illuminate\Http\Request setUserResolver(\Closure $callback) |
|
79 |
+ * @method static \Closure getRouteResolver() |
|
80 |
+ * @method static \Illuminate\Http\Request setRouteResolver(\Closure $callback) |
|
81 |
+ * @method static array toArray() |
|
82 |
+ * @method static bool offsetExists(string $offset) |
|
83 |
+ * @method static mixed offsetGet(string $offset) |
|
84 |
+ * @method static void offsetSet(string $offset, mixed $value) |
|
85 |
+ * @method static void offsetUnset(string $offset) |
|
86 |
+ * |
|
87 |
+ * @see \Illuminate\Http\Request |
|
88 |
+ */ |
|
89 |
+class Input extends Facade |
|
90 |
+{ |
|
91 |
+ /** |
|
92 |
+ * Get an item from the input data. |
|
93 |
+ * |
|
94 |
+ * This method is used for all request verbs (GET, POST, PUT, and DELETE) |
|
95 |
+ * |
|
96 |
+ * @param string|null $key |
|
97 |
+ * @param mixed $default |
|
98 |
+ * @return mixed |
|
99 |
+ */ |
|
100 |
+ public static function get($key = null, $default = null) |
|
101 |
+ { |
|
102 |
+ return static::$app['request']->input($key, $default); |
|
103 |
+ } |
|
104 |
+ |
|
105 |
+ /** |
|
106 |
+ * Get the registered name of the component. |
|
107 |
+ * |
|
108 |
+ * @return string |
|
109 |
+ */ |
|
110 |
+ protected static function getFacadeAccessor() |
|
111 |
+ { |
|
112 |
+ return 'request'; |
|
113 |
+ } |
|
114 |
+} |