public function getLastLoggedIn()
    {
        $lastTime = LoginAttempt::get()
            ->filter([
                'MemberID' => $this->owner->ID,
                'Status' => 'Success',
            ])
            ->sort('Created', 'DESC')
            ->first();

        if ($lastTime) {
            return $lastTime->dbObject('Created')->format(DBDatetime::ISO_DATETIME);
        }
        return _t(__CLASS__ . '.NEVER', 'Never');
    }
public function getLastLoggedIn()
    {
        $lastTime = LoginAttempt::get()
            ->filter([
                'MemberID' => $this->owner->ID,
                'Status' => 'Success',
            ])
            ->sort('Created', 'DESC')
            ->first();

        if ($lastTime) {
            return $lastTime->dbObject('Created')->format(DBDatetime::ISO_DATETIME);
        }
        return _t(__CLASS__ . '.NEVER', 'Never');
    }
public function getLastLoggedIn ( ) { $ lastTime = LoginAttempt :: get ( ) -> filter ( [ 'MemberID' => $ this -> owner -> ID , 'Status' => 'Success' , ] ) -> sort ( 'Created' , 'DESC' ) -> first ( ) ; if ( $ lastTime ) { return $ lastTime -> dbObject ( 'Created' ) -> format ( DBDatetime :: ISO_DATETIME ) ; } return _t ( __CLASS__ . '.NEVER' , 'Never' ) ; }
Retrieves the most recent successful LoginAttempt

@return DBDatetime|string
Retrieves the most recent successful LoginAttempt