Answers for "laravel rename database column"

PHP
12

Laravel Rename Column

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

Code answers related to "laravel rename database column"

Browse Popular Code Answers by Language