refactoring.

This commit is contained in:
Taylor Otwell 2011-11-01 20:35:02 -05:00
parent 6810b99d38
commit 88c8cf6c10
2 changed files with 2 additions and 4 deletions

View File

@ -125,7 +125,7 @@ protected static function hash($name, $value)
*/
public static function forget($name)
{
return static::put($name, null, -1500);
return static::put($name, null, -2000);
}
}

View File

@ -63,9 +63,7 @@ public static function user()
static::$user = call_user_func(Config::get('auth.user'), Session::get(Auth::user_key));
$cookie = Cookie::get(Auth::remember_key);
if (is_null(static::$user) and ! is_null($cookie))
if (is_null(static::$user) and ! is_null($cookie = Cookie::get(Auth::remember_key)))
{
static::$user = static::recall($cookie);
}