Answers for "laravel rename migration file"

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

migration rename column laravel

php artisan make:migration rename_author_id_in_posts_table --table=posts
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 "laravel rename migration file"

Browse Popular Code Answers by Language