App.php
2 years ago
Artisan.php
2 years ago
Auth.php
2 years ago
Blade.php
2 years ago
Broadcast.php
2 years ago
Bus.php
2 years ago
Cache.php
2 years ago
Config.php
2 years ago
Cookie.php
2 years ago
Crypt.php
2 years ago
DB.php
2 years ago
Date.php
2 years ago
Event.php
2 years ago
Facade.php
2 years ago
File.php
2 years ago
Gate.php
2 years ago
Hash.php
2 years ago
Http.php
2 years ago
Lang.php
2 years ago
Log.php
2 years ago
Mail.php
2 years ago
Notification.php
2 years ago
ParallelTesting.php
2 years ago
Password.php
2 years ago
Queue.php
2 years ago
RateLimiter.php
2 years ago
Redirect.php
2 years ago
Redis.php
2 years ago
Request.php
2 years ago
Response.php
2 years ago
Route.php
2 years ago
Schema.php
2 years ago
Session.php
2 years ago
Storage.php
2 years ago
URL.php
2 years ago
Validator.php
2 years ago
View.php
2 years ago
Auth.php
64 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP_SCOPED\Illuminate\Support\Facades; |
| 4 | |
| 5 | use IAWP_SCOPED\Laravel\Ui\UiServiceProvider; |
| 6 | use RuntimeException; |
| 7 | /** |
| 8 | * @method static \Illuminate\Auth\AuthManager extend(string $driver, \Closure $callback) |
| 9 | * @method static \Illuminate\Auth\AuthManager provider(string $name, \Closure $callback) |
| 10 | * @method static \Illuminate\Contracts\Auth\Authenticatable loginUsingId(mixed $id, bool $remember = false) |
| 11 | * @method static \Illuminate\Contracts\Auth\Authenticatable|null user() |
| 12 | * @method static \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard guard(string|null $name = null) |
| 13 | * @method static \Illuminate\Contracts\Auth\UserProvider|null createUserProvider(string $provider = null) |
| 14 | * @method static \Symfony\Component\HttpFoundation\Response|null onceBasic(string $field = 'email',array $extraConditions = []) |
| 15 | * @method static bool attempt(array $credentials = [], bool $remember = false) |
| 16 | * @method static bool hasUser() |
| 17 | * @method static bool check() |
| 18 | * @method static bool guest() |
| 19 | * @method static bool once(array $credentials = []) |
| 20 | * @method static bool onceUsingId(mixed $id) |
| 21 | * @method static bool validate(array $credentials = []) |
| 22 | * @method static bool viaRemember() |
| 23 | * @method static bool|null logoutOtherDevices(string $password, string $attribute = 'password') |
| 24 | * @method static int|string|null id() |
| 25 | * @method static void login(\Illuminate\Contracts\Auth\Authenticatable $user, bool $remember = false) |
| 26 | * @method static void logout() |
| 27 | * @method static void logoutCurrentDevice() |
| 28 | * @method static void setUser(\Illuminate\Contracts\Auth\Authenticatable $user) |
| 29 | * @method static void shouldUse(string $name); |
| 30 | * |
| 31 | * @see \Illuminate\Auth\AuthManager |
| 32 | * @see \Illuminate\Contracts\Auth\Factory |
| 33 | * @see \Illuminate\Contracts\Auth\Guard |
| 34 | * @see \Illuminate\Contracts\Auth\StatefulGuard |
| 35 | * @internal |
| 36 | */ |
| 37 | class Auth extends Facade |
| 38 | { |
| 39 | /** |
| 40 | * Get the registered name of the component. |
| 41 | * |
| 42 | * @return string |
| 43 | */ |
| 44 | protected static function getFacadeAccessor() |
| 45 | { |
| 46 | return 'auth'; |
| 47 | } |
| 48 | /** |
| 49 | * Register the typical authentication routes for an application. |
| 50 | * |
| 51 | * @param array $options |
| 52 | * @return void |
| 53 | * |
| 54 | * @throws \RuntimeException |
| 55 | */ |
| 56 | public static function routes(array $options = []) |
| 57 | { |
| 58 | if (!static::$app->providerIsLoaded(UiServiceProvider::class)) { |
| 59 | throw new RuntimeException('In order to use the Auth::routes() method, please install the laravel/ui package.'); |
| 60 | } |
| 61 | static::$app->make('router')->auth($options); |
| 62 | } |
| 63 | } |
| 64 |