October\Rain\Auth\Concerns\HasStatefulGuard

Overview

HasStatefulGuard defines all methods to satisfy the Laravel contract


Public Methods

public attempt()

public attempt(
    array $credentials = [],
    bool $remember = false
): Models\User 

attempt to authenticate a user using the given credentials.

public login()

public login($user, $remember = true): void

login the given user and sets properties in the session.

public loginUsingId()

public loginUsingId(
    mixed $id,
    bool $remember = false
): Illuminate\Contracts\Auth\Authenticatable|bool 

loginUsingId logs the given user ID into the application.

public logout()

public logout(): void

logout logs the current user out.

public once()

public once(array $credentials = []): bool 

once logs a user into the application without sessions or cookies.

public onceUsingId()

public onceUsingId(
    mixed $id
): Illuminate\Contracts\Auth\Authenticatable|false 

onceUsingId logs the given user ID into the application without sessions or cookies.

public viaRemember()

public viaRemember(): bool 

viaRemember determines if the user was authenticated via "remember me" cookie.