我使用Laravel 5.2并希望更改默认用户表的列。我在CreateUsersTableLaravel默认用户表
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
Schema::table('users', function ($table) {
$table->string('role');
$table->string('info');
$table->string('age');
$table->string('hobies');
$table->string('job');
});
}
写道 和我在GIT的bash运行这些命令,但用户表没有改变。
php artisan migrate:refresh
php artisan migrate
我该如何解决它?
谢谢你,但我发现解决这个问题的简单方法。 – Earthx9