我想遷移(更新)這一點,但我不斷收到此錯誤信息:Laravel遷移錯誤語法
[Symfony的\分量\調試\異常\ FatalErrorException]語法錯誤, 意外 '>' ,要求以 '<'
Schema::table('products', function (Blueprint $table)) {
$table->string('XXXX', 50)->change();
$table->string('XXXX', 50)->change();
$table->string('XXXX', 10)->change();
$table->String('XXXX', 100)->change();;
$table->String('XXXX', 100)->change();
$table->String('XXXX', 100)->change();
$table->String('XXXX', 50)->change();
$table->tinyInteger('XXXX')->unsigned()->change();
$table->tinyInteger('XXXX')->unsigned()->change();
$table->String('XXXX', 100)->change();
$table->tinyInteger('XXXX')->unsigned()->change();
$table->String('XXXX', 50)->change();
$table->String('XXXX', 50)->change();
$table->String('XXXX', 50)->change();
$table->String('XXXX', 50)->change();
$table->String('XXXX', 50)->change();
$table->boolean('XXXX')->change();
$table->boolean('XXXX')->change();
$table->boolean('XXXX')->change();
$table->boolean('XXXX')->change();
$table->boolean('XXXX')->change();
$table->boolean('XXXX')->change();
$table->boolean('XXXX')->change();
$table->boolean('XXXX')->change();
$table->boolean('XXXX')->change();
$table->text('XXXX')->change();
$table->String('XXXX', 100)->change();
$table->String('XXXX', 100)->change();
$table->String('XXXX', 100)->change();
$table->String('XXXX', 100)->change();
$table->tinyInteger('XXXX')->unsigned()->change();
$table->tinyInteger('XXXX')->unsigned()->change();
$table->tinyInteger('XXXX')->unsigned()->change();
$table->tinyInteger('XXXX')->unsigned()->change();
$table->String('XXXX', 50)->change();
$table->String('XXXX', 50)->change();
$table->String('XXXX', 50)->change();
$table->String('XXXX', 50)->change();
$table->text('XXXX');
$table->timestamps();
});
}
什麼行號?你確定它在這個區塊嗎? – Josh