laravel数据库migrate后修改数据表字段信息

composer require doctrine/dbal

  

php artisan make:migration alter_tablename_table --table=tablename

  

Schema::table('users', function (Blueprint $table) { $table->string('name', 50)->nullable()->change(); })

  

php artisan migrate





原文地址:https://www.cnblogs.com/yangfei123/p/11152498.html