Illuminate/auth

Estimated reading time: 1 minute

Illuminate/auth

Illuminate/Contracts/Auth

Illuminate/Foundation/Auth

basic auth

  • Auth::login($user)
  • Auth::login($user,true) => remember(true)
  • Auth::loginUsingId(1)
  • Auth::guard('admin')->login($user)
  • Auth::user()
  • Auth::id()
  • Auth::check()
  • Auth::attempt()
  • Auth::guard('admin')->attempt($credentials)
  • Auth::logout()
  • Auth::logoutOtherDevices($password)

~ laravel framework auth methods

illumininate/auth/Authenticatable

  • getAuthIdentifierName()
  • getAuthIdentifier()
  • getAuthPassword()
  • getRememberToken()
  • setRememberToken()
  • getRememberTokenName()

auth:routes()

  • https://github.com/laravel/framework/blob/5.6/src/Illuminate/Support/Facades/Auth.php#L49

Auth::routes()

doc

custom auth driver