Answers for "how to rename update laravel migration"

PHP
1

migration rename column laravel

public function down()
{
    Schema::table('posts', function (Blueprint $table) {
        $table->renameColumn('user_id', 'author_ID');
    });
}
Posted by: Guest on February-09-2021
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 "how to rename update laravel migration"

Browse Popular Code Answers by Language