Guest User

Untitled

a guest
Oct 22nd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 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. *
  22. * @see \Illuminate\Auth\AuthManager
  23. * @see \Illuminate\Contracts\Auth\Factory
  24. * @see \Illuminate\Contracts\Auth\Guard
  25. * @see \Illuminate\Contracts\Auth\StatefulGuard
  26. */
  27. class Auth extends Facade
  28. {
  29. /**
  30. * Get the registered name of the component.
  31. *
  32. * @return string
  33. */
  34. protected static function getFacadeAccessor()
  35. {
  36. return 'auth';
  37. }
  38.  
  39. /**
  40. * Register the typical authentication routes for an application.
  41. *
  42. * @return void
  43. */
  44. public static function routes()
  45. {
  46. static::$app->make('router')->auth();
  47. }
  48. }
Add Comment
Please, Sign In to add comment