如何修复“ Method Illuminate \ Database \ Schema \ Blueprint :: number不存在。”

当我使用php artisan migration时,会收到此消息。有人可以帮我弄这个吗?我在互联网上进行搜索,但没有找到任何对我有帮助的信息。 (我是laravel的新手)

我的桌子:

<?php

使用Illuminate \ Database \ Migrations \ Migration;

使用Illuminate \ Database \ Schema \ Blueprint;

使用Illuminate \ Support \ Facades \ Schema;

CreateSroomsTable类扩展了迁移

{

/**

 * Run the migrations.

 *

 * @return void

 */
public function up()
{
    Schema::create('srooms',function (Blueprint $table) {
        $table->id();
        $table->string('room_two');
        $table->string('room_three');
        $table->string('room_four');
        $table->string('room_five');
        $table->string('room_six');
        $table->string('room_seven');
        $table->string('room_eight');
        $table->string('room_nine');
        $table->string('room_ten');
        $table->string('room_eleven');
        $table->string('room_twelve');
        $table->softDeletes();
        $table->timestamps();
    });
}

/**
 * Reverse the migrations.
 *
 * @return void
 */
public function down()
{
    Schema::dropIfExists('srooms');
}

}`

leijian_113 回答:如何修复“ Method Illuminate \ Database \ Schema \ Blueprint :: number不存在。”

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/1271188.html

大家都在问