src/Models/HCUser.php
public function updateLastLogin(string $time = null): void
    {
        $this->timestamps = false;
        $this->last_login = is_null($time) ? $this->freshTimestamp() : $time;
        $this->save();

        $this->updateLastActivity();
    }
public function updateLastLogin(string $time = null): void
    {
        $this->timestamps = false;
        $this->last_login = is_null($time) ? $this->freshTimestamp() : $time;
        $this->save();

        $this->updateLastActivity();
    }
public function updateLastLogin ( string $ time = null ) : void { $ this -> timestamps = false ; $ this -> last_login = is_null ( $ time ) ? $ this -> freshTimestamp ( ) : $ time ; $ this -> save ( ) ; $ this -> updateLastActivity ( ) ; }
Update last login timestamp

@param null|string $time
@throws \Exception
Update last login timestamp