interface Illuminate / Contracts / Auth / StatefulGuard
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

StatefulGuard

Methods

public

attempt ( array $credentials , $remember ) : bool

Attempt to authenticate a user using the given credentials.

Parameters

  • $credentials array
  • $remember bool
public

once ( array $credentials ) : bool

Log a user into the application without sessions or cookies.

Parameters

  • $credentials array
public

login ( Authenticatable $user , $remember ) : void

Log a user into the application.

Parameters

public

loginUsingId ( $id , $remember ) : Authenticatable |bool

Log the given user ID into the application.

Parameters

  • $id mixed
  • $remember bool
public

onceUsingId ( $id ) : Authenticatable |bool

Log the given user ID into the application without sessions or cookies.

Parameters

  • $id mixed
public

viaRemember ( ) : bool

Determine if the user was authenticated via "remember me" cookie.

public

logout ( ) : void

Log the user out of the application.