App.php
1 month ago
Artisan.php
1 month ago
Auth.php
1 month ago
Blade.php
1 month ago
Broadcast.php
1 month ago
Bus.php
1 month ago
Cache.php
1 month ago
Config.php
1 month ago
Cookie.php
1 month ago
Crypt.php
1 month ago
DB.php
1 month ago
Date.php
1 month ago
Event.php
1 month ago
Facade.php
1 month ago
File.php
1 month ago
Gate.php
1 month ago
Hash.php
1 month ago
Http.php
1 month ago
Lang.php
1 month ago
Log.php
1 month ago
Mail.php
1 month ago
Notification.php
1 month ago
ParallelTesting.php
1 month ago
Password.php
1 month ago
Queue.php
1 month ago
RateLimiter.php
1 month ago
Redirect.php
1 month ago
Redis.php
1 month ago
Request.php
1 month ago
Response.php
1 month ago
Route.php
1 month ago
Schema.php
1 month ago
Session.php
1 month ago
Storage.php
1 month ago
URL.php
1 month ago
Validator.php
1 month ago
View.php
1 month ago
Vite.php
1 month ago
Auth.php
97 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Support\Facades; |
| 4 | |
| 5 | use IAWPSCOPED\Laravel\Ui\UiServiceProvider; |
| 6 | use RuntimeException; |
| 7 | /** |
| 8 | * @method static \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard guard(string|null $name = null) |
| 9 | * @method static \Illuminate\Auth\SessionGuard createSessionDriver(string $name, array $config) |
| 10 | * @method static \Illuminate\Auth\TokenGuard createTokenDriver(string $name, array $config) |
| 11 | * @method static string getDefaultDriver() |
| 12 | * @method static void shouldUse(string $name) |
| 13 | * @method static void setDefaultDriver(string $name) |
| 14 | * @method static \Illuminate\Auth\AuthManager viaRequest(string $driver, callable $callback) |
| 15 | * @method static \Closure userResolver() |
| 16 | * @method static \Illuminate\Auth\AuthManager resolveUsersUsing(\Closure $userResolver) |
| 17 | * @method static \Illuminate\Auth\AuthManager extend(string $driver, \Closure $callback) |
| 18 | * @method static \Illuminate\Auth\AuthManager provider(string $name, \Closure $callback) |
| 19 | * @method static bool hasResolvedGuards() |
| 20 | * @method static \Illuminate\Auth\AuthManager forgetGuards() |
| 21 | * @method static \Illuminate\Auth\AuthManager setApplication(\Illuminate\Contracts\Foundation\Application $app) |
| 22 | * @method static \Illuminate\Contracts\Auth\UserProvider|null createUserProvider(string|null $provider = null) |
| 23 | * @method static string getDefaultUserProvider() |
| 24 | * @method static bool check() |
| 25 | * @method static bool guest() |
| 26 | * @method static \Illuminate\Contracts\Auth\Authenticatable|null user() |
| 27 | * @method static int|string|null id() |
| 28 | * @method static bool validate(array $credentials = []) |
| 29 | * @method static bool hasUser() |
| 30 | * @method static void setUser(\Illuminate\Contracts\Auth\Authenticatable $user) |
| 31 | * @method static bool attempt(array $credentials = [], bool $remember = false) |
| 32 | * @method static bool once(array $credentials = []) |
| 33 | * @method static void login(\Illuminate\Contracts\Auth\Authenticatable $user, bool $remember = false) |
| 34 | * @method static \Illuminate\Contracts\Auth\Authenticatable|bool loginUsingId(mixed $id, bool $remember = false) |
| 35 | * @method static \Illuminate\Contracts\Auth\Authenticatable|bool onceUsingId(mixed $id) |
| 36 | * @method static bool viaRemember() |
| 37 | * @method static void logout() |
| 38 | * @method static \Symfony\Component\HttpFoundation\Response|null basic(string $field = 'email', array $extraConditions = []) |
| 39 | * @method static \Symfony\Component\HttpFoundation\Response|null onceBasic(string $field = 'email', array $extraConditions = []) |
| 40 | * @method static bool attemptWhen(array $credentials = [], array|callable|null $callbacks = null, bool $remember = false) |
| 41 | * @method static void logoutCurrentDevice() |
| 42 | * @method static \Illuminate\Contracts\Auth\Authenticatable|null logoutOtherDevices(string $password, string $attribute = 'password') |
| 43 | * @method static void attempting(mixed $callback) |
| 44 | * @method static \Illuminate\Contracts\Auth\Authenticatable getLastAttempted() |
| 45 | * @method static string getName() |
| 46 | * @method static string getRecallerName() |
| 47 | * @method static \Illuminate\Auth\SessionGuard setRememberDuration(int $minutes) |
| 48 | * @method static \Illuminate\Contracts\Cookie\QueueingFactory getCookieJar() |
| 49 | * @method static void setCookieJar(\Illuminate\Contracts\Cookie\QueueingFactory $cookie) |
| 50 | * @method static \Illuminate\Contracts\Events\Dispatcher getDispatcher() |
| 51 | * @method static void setDispatcher(\Illuminate\Contracts\Events\Dispatcher $events) |
| 52 | * @method static \Illuminate\Contracts\Session\Session getSession() |
| 53 | * @method static \Illuminate\Contracts\Auth\Authenticatable|null getUser() |
| 54 | * @method static \Symfony\Component\HttpFoundation\Request getRequest() |
| 55 | * @method static \Illuminate\Auth\SessionGuard setRequest(\Symfony\Component\HttpFoundation\Request $request) |
| 56 | * @method static \Illuminate\Support\Timebox getTimebox() |
| 57 | * @method static \Illuminate\Contracts\Auth\Authenticatable authenticate() |
| 58 | * @method static \Illuminate\Auth\SessionGuard forgetUser() |
| 59 | * @method static \Illuminate\Contracts\Auth\UserProvider getProvider() |
| 60 | * @method static void setProvider(\Illuminate\Contracts\Auth\UserProvider $provider) |
| 61 | * @method static void macro(string $name, object|callable $macro) |
| 62 | * @method static void mixin(object $mixin, bool $replace = true) |
| 63 | * @method static bool hasMacro(string $name) |
| 64 | * @method static void flushMacros() |
| 65 | * |
| 66 | * @see \Illuminate\Auth\AuthManager |
| 67 | * @see \Illuminate\Auth\SessionGuard |
| 68 | * @internal |
| 69 | */ |
| 70 | class Auth extends Facade |
| 71 | { |
| 72 | /** |
| 73 | * Get the registered name of the component. |
| 74 | * |
| 75 | * @return string |
| 76 | */ |
| 77 | protected static function getFacadeAccessor() |
| 78 | { |
| 79 | return 'auth'; |
| 80 | } |
| 81 | /** |
| 82 | * Register the typical authentication routes for an application. |
| 83 | * |
| 84 | * @param array $options |
| 85 | * @return void |
| 86 | * |
| 87 | * @throws \RuntimeException |
| 88 | */ |
| 89 | public static function routes(array $options = []) |
| 90 | { |
| 91 | if (!static::$app->providerIsLoaded(UiServiceProvider::class)) { |
| 92 | throw new RuntimeException('In order to use the Auth::routes() method, please install the laravel/ui package.'); |
| 93 | } |
| 94 | static::$app->make('router')->auth($options); |
| 95 | } |
| 96 | } |
| 97 |