Example #1
0
 /**
  * {@inheritDoc}
  */
 public function attempt(array $credentials = [], $remember = false, $login = true)
 {
     if (!array_key_exists('namespace', $credentials)) {
         $credentials['namespace'] = '';
     }
     return parent::attempt($credentials, $remember, $login);
 }
Example #2
0
 /**
  * Attempt to authenticate a user using the given credentials.
  *
  * @param array $credentials
  * @param bool $remember
  * @param bool $login
  * @return bool 
  * @static 
  */
 public static function attempt($credentials = array(), $remember = false, $login = true)
 {
     return \Illuminate\Auth\SessionGuard::attempt($credentials, $remember, $login);
 }