dont use ioc for session.
This commit is contained in:
parent
eaa2cf593c
commit
33f34aa479
|
@ -55,7 +55,7 @@ public static function user()
|
|||
{
|
||||
if ( ! is_null(static::$user)) return static::$user;
|
||||
|
||||
$id = IoC::core('session')->get(Auth::user_key);
|
||||
$id = Session::get(Auth::user_key);
|
||||
|
||||
// To retrieve the user, we'll first attempt to use the "user" Closure
|
||||
// defined in the auth configuration file, passing in the ID. The user
|
||||
|
|
Loading…
Reference in New Issue