Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 雄辩的迁移不起作用_Php_Laravel - Fatal编程技术网

Php 雄辩的迁移不起作用

Php 雄辩的迁移不起作用,php,laravel,Php,Laravel,这是我的密码 Scheme::create(function(Blueprint table) { $table->increments("id"); } 有人能告诉我为什么这不起作用吗?我不知道为什么…首先,您没有命名数据库,它是Schema Schema::create('assignments', function(Blueprint $table) { $table->increments('id'); }); 希望这有帮助 因为参数应该是$table

这是我的密码

Scheme::create(function(Blueprint table) {
    $table->increments("id");
}

有人能告诉我为什么这不起作用吗?我不知道为什么…

首先,您没有命名数据库,它是
Schema

Schema::create('assignments', function(Blueprint $table) {
     $table->increments('id');
 });
希望这有帮助



因为参数应该是
$table
而不是
table