Schema::create('signups', function (Blueprint $table) {
$table->id();
$table->string('first name');
$table->string('last name');
$table->??('email');
$table->timestamps();
});
uj5u.com熱心網友回復:
您必須按如下方式使用字串:
$table->string('email');
uj5u.com熱心網友回復:
您應該像這樣使用字串型別:
$table->string('email');
uj5u.com熱心網友回復:
您可以使用以下代碼,兩者都是正確的:
$table->string('email')
$table->varchar('email')
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/401267.html
