edit table name with new migration laravel 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');});