Answers for "laravel migration renaming column"

PHP
12

laravel migration change column name

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

rename migration laravel

php artisan make:migration alter_your_table --table=your_table
Posted by: Guest on May-16-2021

Browse Popular Code Answers by Language