change table name migration code example
Example 1: laravel rename table
Schema::rename($currentTableName, $newTableName);
Example 2: how to rename a table element in laravel
Schema::table('users', function (Blueprint $table) { $table->renameColumn('from', 'to');});