src/Schema.php
public function renameTable(string $table, string $name)
    {
        $result = $this->connection->schemaCompiler()->renameTable($table, $name);
        $this->connection->command($result['sql'], $result['params']);
        $this->tableList = null;
        unset($this->columns[strtolower($table)]);
    }
public function renameTable(string $table, string $name)
    {
        $result = $this->connection->schemaCompiler()->renameTable($table, $name);
        $this->connection->command($result['sql'], $result['params']);
        $this->tableList = null;
        unset($this->columns[strtolower($table)]);
    }
public function renameTable ( string $ table , string $ name ) { $ result = $ this -> connection -> schemaCompiler ( ) -> renameTable ( $ table , $ name ) ; $ this -> connection -> command ( $ result [ 'sql' ] , $ result [ 'params' ] ) ; $ this -> tableList = null ; unset ( $ this -> columns [ strtolower ( $ table ) ] ) ; }
Change a table's name

@param   string $table The table
@param   string $name The new name of the table
@throws \Exception
Change a table s name