public function updateLastLogin(?Carbon $override = null)
    {
        $name = $this->getLastLoginKey();

        if ($this->getAttributeFromArray($name) === null) {
            throw new NullValueException("Property {$name} not set on this object");
        }

        $this->{$name} = $override === null ? Carbon::now()->toDateTimeString() : $override->toDateTimeString();

        $this->lastLoginParsed = null;

        return $this;
    }
public function updateLastLogin(?Carbon $override = null)
    {
        $name = $this->getLastLoginKey();

        if ($this->getAttributeFromArray($name) === null) {
            throw new NullValueException("Property {$name} not set on this object");
        }

        $this->{$name} = $override === null ? Carbon::now()->toDateTimeString() : $override->toDateTimeString();

        $this->lastLoginParsed = null;

        return $this;
    }
public function updateLastLogin ( ? Carbon $ override = null ) { $ name = $ this -> getLastLoginKey ( ) ; if ( $ this -> getAttributeFromArray ( $ name ) === null ) { throw new NullValueException ( "Property {$name} not set on this object" ) ; } $ this -> { $ name } = $ override === null ? Carbon :: now ( ) -> toDateTimeString ( ) : $ override -> toDateTimeString ( ) ; $ this -> lastLoginParsed = null ; return $ this ; }
Update a users last login

@param \Carbon\Carbon|null $override
@return $this
@throws \Laranix\Support\Exception\NullValueException
Update a users last login