Commit 8c580d17 authored by Jason Lewis's avatar Jason Lewis

You can only pass the ID of a user, not an object.

Signed-off-by: 's avatarJason Lewis <jason.lewis1991@gmail.com>
parent 33b5f637
......@@ -50,9 +50,9 @@ To determine if the user of your application is logged in, call the **check** me
return "You're logged in!";
}
Use the **login** method to login a user without checking their credentials, such as after a user first registers to use your application. Just pass your user object or the user's ID:
Use the **login** method to login a user without checking their credentials, such as after a user first registers to use your application. Just pass the user's ID:
Auth::login($user);
Auth::login($user->id);
Auth::login(15);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment