dont use ioc for session.
This commit is contained in:
@@ -55,7 +55,7 @@ class Auth {
|
||||
{
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user