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

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
This commit is contained in:
Jason Lewis 2012-09-24 01:01:14 +09:30
parent 33b5f6377c
commit 8c580d17fb
1 changed files with 2 additions and 2 deletions

View File

@ -50,9 +50,9 @@ ## Logging In
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);