Manually Authenticating Users: Other Authentication Methods

Authenticate A User Instance

Auth::login($user);

// Login and "remember" the given user...
Auth::login($user, true);
Auth::guard('admin')->login($user);

Authenticate A User By ID

Auth::loginUsingId(1);

// Login and "remember" the given user...
Auth::loginUsingId(1, true);

Authenticate A User Once

If (Auth::once($credentials)) {
    //
}

Manually Authenticating Users: Other Authentication Methods — Structure map

Clickable & Draggable!

Manually Authenticating Users: Other Authentication Methods — Related pages: