-1
我在line 50
上得到了一個解析錯誤,這是我的模式創建語句的大括號,但是我看不到任何缺少的語法,所以我很困惑。解析錯誤{} php Migrations
代碼:
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('user_id');
$table->string('f_name');
$table->string('l_name');
$table->string('gender');
$table->date('dob');
$table->string('company_name');
$table->string('email')->unique();
$table->string('password');
$table->increments('landline');
$table->increments('mobile');
$table->increments('activated');
$this->increments('social_login');
$table->timestamp('last_login');
$table->rememberToken();
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('users');
}
}
@ Rizier123 5.6.10 –
此行$ this-> increment('social_login');應該是$ table->增量('social_login'); – Mirceac21