Answers for "how to change exsiting table column name in laravel"

PHP
2

laravel change column

Schema::table('users', function (Blueprint $table) {
    $table->string('name', 50)->nullable()->change();
});
Posted by: Guest on April-02-2020
0

how to rename a table element in laravel

Schema::table('users', function (Blueprint $table) {    $table->renameColumn('from', 'to');});
Posted by: Guest on December-05-2020

Code answers related to "how to change exsiting table column name in laravel"

Browse Popular Code Answers by Language