Answers for "laravel rename migration"

PHP
1

create database from migration laravel for all

php artisan migrate:refresh

php artisan migrate:refresh --seed
Posted by: Guest on August-05-2020
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
1

migration rename column laravel

public function up()
{
    Schema::table('posts', function (Blueprint $table) {
        $table->renameColumn('author_ID', 'user_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 "laravel rename migration"

Browse Popular Code Answers by Language