refactoring.
This commit is contained in:
parent
6810b99d38
commit
88c8cf6c10
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue