Manually Authenticating Users: Accessing Specific Guard Instances

Allows you to manage authentication for separate parts of your application using entirely separate authenticatable models or user tables.

If (Auth::guard('admin')->attempt($credentials)) {
    //
}

Manually Authenticating Users: Accessing Specific Guard Instances — Structure map

Clickable & Draggable!

Manually Authenticating Users: Accessing Specific Guard Instances — Related pages: