src/Models/Appointment.php
public function doCancel()
    {
        if ($this->isCancelable()) {
            $this->status = self::STATUS_CANCELED;

            $this->save();
        }

        return $this;
    }
public function doCancel()
    {
        if ($this->isCancelable()) {
            $this->status = self::STATUS_CANCELED;

            $this->save();
        }

        return $this;
    }
public function doCancel ( ) { if ( $ this -> isCancelable ( ) ) { $ this -> status = self :: STATUS_CANCELED ; $ this -> save ( ) ; } return $ this ; }
Check and perform cancel action.

@return $this
Check and perform cancel action .