Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Quote string with slashes
<?php addslashes(string $string): string
<?php     protected function modifyComment(Blueprint $blueprint, Fluent $column)

    {

        if (! is_null($column->comment)) {

            return " comment '".addslashes($column->comment)."'";

        }

    }
<?php         return rtrim(sprintf('unique:%s,%s,%s,%s,%s',

            $this->table,

            $this->column,

            $this->ignore ? '"'.addslashes($this->ignore).'"' : 'NULL',

            $this->idColumn,

            $this->formatWheres()

        ), ',');