src/Models/HCUser.php
public function updateLastActivity(string $time = null): void
    {
        $this->timestamps = false;
        $this->last_activity = is_null($time) ? $this->freshTimestamp() : $time;
        $this->save();
    }
public function updateLastActivity(string $time = null): void
    {
        $this->timestamps = false;
        $this->last_activity = is_null($time) ? $this->freshTimestamp() : $time;
        $this->save();
    }
public function updateLastActivity ( string $ time = null ) : void { $ this -> timestamps = false ; $ this -> last_activity = is_null ( $ time ) ? $ this -> freshTimestamp ( ) : $ time ; $ this -> save ( ) ; }
Update last activity timestamp

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