Add a new column to existing table in a migration

前端 未结 12 2655
离开以前
离开以前 2020-11-28 17:09

I can\'t figure out how to add a new column to my existing database table using the Laravel framework.

I tried to edit the migration file using...



        
12条回答
  •  误落风尘
    2020-11-28 17:47

    Add column to your migration file and run this command.

    php artisan migrate:refresh --path=/database/migrations/your_file_name.php
    

提交回复
热议问题