how to rename a table element in laravel

40

Schema::rename($currentTableName, $newTableName);
Schema::table('users', function (Blueprint $table) {    $table->renameColumn('from', 'to');});

Comments

Submit
0 Comments