public function getLastLogin() : Carbon
    {
        if ($this->lastLoginParsed !== null) {
            return $this->lastLoginParsed;
        }

        $name = $this->getLastLoginKey();

        $lastLogin = $this->asDateTime($this->getAttributeFromArray($name) ?? Carbon::now());

        return $this->{$name} = $this->lastLoginParsed = Carbon::createFromFormat('Y-m-d H:i:s', $lastLogin);
    }
public function getLastLogin() : Carbon
    {
        if ($this->lastLoginParsed !== null) {
            return $this->lastLoginParsed;
        }

        $name = $this->getLastLoginKey();

        $lastLogin = $this->asDateTime($this->getAttributeFromArray($name) ?? Carbon::now());

        return $this->{$name} = $this->lastLoginParsed = Carbon::createFromFormat('Y-m-d H:i:s', $lastLogin);
    }
public function getLastLogin ( ) : Carbon { if ( $ this -> lastLoginParsed !== null ) { return $ this -> lastLoginParsed ; } $ name = $ this -> getLastLoginKey ( ) ; $ lastLogin = $ this -> asDateTime ( $ this -> getAttributeFromArray ( $ name ) ?? Carbon :: now ( ) ) ; return $ this -> { $ name } = $ this -> lastLoginParsed = Carbon :: createFromFormat ( 'Y-m-d H:i:s' , $ lastLogin ) ; }
Get last login

@return \Carbon\Carbon
Get last login