It not work, I search so many ways, How can I change length of value in laravel 5
public function up()
{
Schema::table('articles', function (Blueprint $table) {
$table->string('name',50)->change();
});
}
谢谢大家的阅读!
It not work, I search so many ways, How can I change length of value in laravel 5
public function up()
{
Schema::table('articles', function (Blueprint $table) {
$table->string('name',50)->change();
});
}
谢谢大家的阅读!
关于documentation,你的榜样应该行得通:
Schema::table('users', function ($table) {
$table->string('name', 50)->change();
});
Just run php artisan migrate
command to execute it.