src/Exceptions/Database/ColumnExistsException.php
public static function withName($columnName, $tableName, $code = 0, $previous = null)
    {
        return new static(
            sprintf('Column "%s" already exists on table "%s', $columnName, $tableName),
            $code,
            $previous
        );
    }
public static function withName($columnName, $tableName, $code = 0, $previous = null)
    {
        return new static(
            sprintf('Column "%s" already exists on table "%s', $columnName, $tableName),
            $code,
            $previous
        );
    }
Create a new exception for an existing column.

@param string     $columnName The column name.
@param string     $tableName  The table name.
@param int        $code       The optional Exception code.
@param \Exception $previous   The optional previous throwable used for the exception chaining.

@return static