From 8c580d17fbb006be811a7979a7faf305ad7ca697 Mon Sep 17 00:00:00 2001 From: Jason Lewis Date: Mon, 24 Sep 2012 01:01:14 +0930 Subject: [PATCH] You can only pass the ID of a user, not an object. Signed-off-by: Jason Lewis --- laravel/documentation/auth/usage.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/documentation/auth/usage.md b/laravel/documentation/auth/usage.md index 8a9a0650..4e7ba5fe 100644 --- a/laravel/documentation/auth/usage.md +++ b/laravel/documentation/auth/usage.md @@ -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);