这是我的代码
Scheme::create(function(Blueprint table) {
$table->increments("id");
}
谁能告诉我为什么这不起作用?我不知道为什么。。
首先,
您没有命名数据库,它Schema
Schema::create('assignments', function(Blueprint $table) {
$table->increments('id');
});
希望这有帮助。