在laravel迁移中添加列
php artisan make:migration add_paid_to_users_table --table=users
如何更改现有的迁移laravel
php artisan make:migration update_user_guide_in_product_translations_table
迁移必填字段laravel
$table->string('foo')->nullable(false)->change();
laravel回滚上次迁移
php artisan migrate:rollback --step=1
更改现有迁移laravel
php artisan make:migration update_description_in_products_table
迁移到laravel commad中的现有表
public function up()
{
Schema::table('users', function($table) {
$table->integer('paid');
});
}