1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,54 +0,0 @@ |
1 |
-<?php |
|
2 |
- |
|
3 |
-namespace Illuminate\Support\Facades; |
|
4 |
- |
|
5 |
-/** |
|
6 |
- * @method static mixed guard(string|null $name = null) |
|
7 |
- * @method static void shouldUse(string $name); |
|
8 |
- * @method static bool check() |
|
9 |
- * @method static bool guest() |
|
10 |
- * @method static \Illuminate\Contracts\Auth\Authenticatable|null user() |
|
11 |
- * @method static int|null id() |
|
12 |
- * @method static bool validate(array $credentials = []) |
|
13 |
- * @method static void setUser(\Illuminate\Contracts\Auth\Authenticatable $user) |
|
14 |
- * @method static bool attempt(array $credentials = [], bool $remember = false) |
|
15 |
- * @method static bool once(array $credentials = []) |
|
16 |
- * @method static void login(\Illuminate\Contracts\Auth\Authenticatable $user, bool $remember = false) |
|
17 |
- * @method static \Illuminate\Contracts\Auth\Authenticatable loginUsingId(mixed $id, bool $remember = false) |
|
18 |
- * @method static bool onceUsingId(mixed $id) |
|
19 |
- * @method static bool viaRemember() |
|
20 |
- * @method static void logout() |
|
21 |
- * @method static \Symfony\Component\HttpFoundation\Response|null onceBasic(string $field = 'email',array $extraConditions = []) |
|
22 |
- * @method static null|bool logoutOtherDevices(string $password, string $attribute = 'password') |
|
23 |
- * @method static \Illuminate\Contracts\Auth\UserProvider|null createUserProvider(string $provider = null) |
|
24 |
- * @method static \Illuminate\Auth\AuthManager extend(string $driver, \Closure $callback) |
|
25 |
- * @method static \Illuminate\Auth\AuthManager provider(string $name, \Closure $callback) |
|
26 |
- * |
|
27 |
- * @see \Illuminate\Auth\AuthManager |
|
28 |
- * @see \Illuminate\Contracts\Auth\Factory |
|
29 |
- * @see \Illuminate\Contracts\Auth\Guard |
|
30 |
- * @see \Illuminate\Contracts\Auth\StatefulGuard |
|
31 |
- */ |
|
32 |
-class Auth extends Facade |
|
33 |
-{ |
|
34 |
- /** |
|
35 |
- * Get the registered name of the component. |
|
36 |
- * |
|
37 |
- * @return string |
|
38 |
- */ |
|
39 |
- protected static function getFacadeAccessor() |
|
40 |
- { |
|
41 |
- return 'auth'; |
|
42 |
- } |
|
43 |
- |
|
44 |
- /** |
|
45 |
- * Register the typical authentication routes for an application. |
|
46 |
- * |
|
47 |
- * @param array $options |
|
48 |
- * @return void |
|
49 |
- */ |
|
50 |
- public static function routes(array $options = []) |
|
51 |
- { |
|
52 |
- static::$app->make('router')->auth($options); |
|
53 |
- } |
|
54 |
-} |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,54 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+namespace Illuminate\Support\Facades; |
|
4 |
+ |
|
5 |
+/** |
|
6 |
+ * @method static mixed guard(string|null $name = null) |
|
7 |
+ * @method static void shouldUse(string $name); |
|
8 |
+ * @method static bool check() |
|
9 |
+ * @method static bool guest() |
|
10 |
+ * @method static \Illuminate\Contracts\Auth\Authenticatable|null user() |
|
11 |
+ * @method static int|null id() |
|
12 |
+ * @method static bool validate(array $credentials = []) |
|
13 |
+ * @method static void setUser(\Illuminate\Contracts\Auth\Authenticatable $user) |
|
14 |
+ * @method static bool attempt(array $credentials = [], bool $remember = false) |
|
15 |
+ * @method static bool once(array $credentials = []) |
|
16 |
+ * @method static void login(\Illuminate\Contracts\Auth\Authenticatable $user, bool $remember = false) |
|
17 |
+ * @method static \Illuminate\Contracts\Auth\Authenticatable loginUsingId(mixed $id, bool $remember = false) |
|
18 |
+ * @method static bool onceUsingId(mixed $id) |
|
19 |
+ * @method static bool viaRemember() |
|
20 |
+ * @method static void logout() |
|
21 |
+ * @method static \Symfony\Component\HttpFoundation\Response|null onceBasic(string $field = 'email',array $extraConditions = []) |
|
22 |
+ * @method static null|bool logoutOtherDevices(string $password, string $attribute = 'password') |
|
23 |
+ * @method static \Illuminate\Contracts\Auth\UserProvider|null createUserProvider(string $provider = null) |
|
24 |
+ * @method static \Illuminate\Auth\AuthManager extend(string $driver, \Closure $callback) |
|
25 |
+ * @method static \Illuminate\Auth\AuthManager provider(string $name, \Closure $callback) |
|
26 |
+ * |
|
27 |
+ * @see \Illuminate\Auth\AuthManager |
|
28 |
+ * @see \Illuminate\Contracts\Auth\Factory |
|
29 |
+ * @see \Illuminate\Contracts\Auth\Guard |
|
30 |
+ * @see \Illuminate\Contracts\Auth\StatefulGuard |
|
31 |
+ */ |
|
32 |
+class Auth extends Facade |
|
33 |
+{ |
|
34 |
+ /** |
|
35 |
+ * Get the registered name of the component. |
|
36 |
+ * |
|
37 |
+ * @return string |
|
38 |
+ */ |
|
39 |
+ protected static function getFacadeAccessor() |
|
40 |
+ { |
|
41 |
+ return 'auth'; |
|
42 |
+ } |
|
43 |
+ |
|
44 |
+ /** |
|
45 |
+ * Register the typical authentication routes for an application. |
|
46 |
+ * |
|
47 |
+ * @param array $options |
|
48 |
+ * @return void |
|
49 |
+ */ |
|
50 |
+ public static function routes(array $options = []) |
|
51 |
+ { |
|
52 |
+ static::$app->make('router')->auth($options); |
|
53 |
+ } |
|
54 |
+} |