Blame view

public/vendor/illuminate/support/Facades/Auth.php 2.37 KB
86143e36f   Андрей Ларионов   Коммит вторник
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
  <?php
  
  namespace Illuminate\Support\Facades;
  
  use Laravel\Ui\UiServiceProvider;
  use RuntimeException;
  
  /**
   * @method static \Illuminate\Auth\AuthManager extend(string $driver, \Closure $callback)
   * @method static \Illuminate\Auth\AuthManager provider(string $name, \Closure $callback)
   * @method static \Illuminate\Contracts\Auth\Authenticatable loginUsingId(mixed $id, bool $remember = false)
   * @method static \Illuminate\Contracts\Auth\Authenticatable|null user()
   * @method static \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard guard(string|null $name = null)
   * @method static \Illuminate\Contracts\Auth\UserProvider|null createUserProvider(string $provider = null)
   * @method static \Symfony\Component\HttpFoundation\Response|null onceBasic(string $field = 'email',array $extraConditions = [])
   * @method static bool attempt(array $credentials = [], bool $remember = false)
   * @method static bool check()
   * @method static bool guest()
   * @method static bool once(array $credentials = [])
   * @method static bool onceUsingId(mixed $id)
   * @method static bool validate(array $credentials = [])
   * @method static bool viaRemember()
   * @method static bool|null logoutOtherDevices(string $password, string $attribute = 'password')
   * @method static int|string|null id()
   * @method static void login(\Illuminate\Contracts\Auth\Authenticatable $user, bool $remember = false)
   * @method static void logout()
   * @method static void setUser(\Illuminate\Contracts\Auth\Authenticatable $user)
   * @method static void shouldUse(string $name);
   *
   * @see \Illuminate\Auth\AuthManager
   * @see \Illuminate\Contracts\Auth\Factory
   * @see \Illuminate\Contracts\Auth\Guard
   * @see \Illuminate\Contracts\Auth\StatefulGuard
   */
  class Auth extends Facade
  {
      /**
       * Get the registered name of the component.
       *
       * @return string
       */
      protected static function getFacadeAccessor()
      {
          return 'auth';
      }
  
      /**
       * Register the typical authentication routes for an application.
       *
       * @param  array  $options
       * @return void
       */
      public static function routes(array $options = [])
      {
          if (! static::$app->providerIsLoaded(UiServiceProvider::class)) {
              throw new RuntimeException('In order to use the Auth::routes() method, please install the laravel/ui package.');
          }
  
          static::$app->make('router')->auth($options);
      }
  }