Answers for "rename in migfration laravcel"

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

Browse Popular Code Answers by Language