models/log/UserLoginTrait.php
public function recordLogin($config = [])
    {
        if (empty($this->loginLogClass)) {
            return false;
        }
        $log = $this->create($this->loginLogClass, $config);
        try {
            return $log->save();
        } catch (\Exception $ex) {
            Yii::error($ex->getMessage(), __METHOD__);
        }
    }
public function recordLogin($config = [])
    {
        if (empty($this->loginLogClass)) {
            return false;
        }
        $log = $this->create($this->loginLogClass, $config);
        try {
            return $log->save();
        } catch (\Exception $ex) {
            Yii::error($ex->getMessage(), __METHOD__);
        }
    }
public function recordLogin ( $ config = [ ] ) { if ( empty ( $ this -> loginLogClass ) ) { return false ; } $ log = $ this -> create ( $ this -> loginLogClass , $ config ) ; try { return $ log -> save ( ) ; } catch ( \ Exception $ ex ) { Yii :: error ( $ ex -> getMessage ( ) , __METHOD__ ) ; } }
Record login.
@param array $config
@return mixed
Record login .