Answers for "default laravel mifrations"

PHP
6

how to change existing migration laravel

php artisan make:migration update_user_guide_in_product_translations_table
Posted by: Guest on November-24-2020
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

Browse Popular Code Answers by Language