小编Par*_*mba的帖子

在 Macroable.php 第 96 行:方法体不存在

我对 Laravel 还很陌生。我创建了一个名为:create_notes_table 的迁移文件,当运行命令 php artisan migrate 时,会弹出此错误消息。

我的 create_notes_table 文件内容

class CreateNotesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('notes', function (Blueprint $table) {
            $table->increments('id');
            $table->number('card_id');
            $table->body('string');
            $table->timestamps();
        });
    }



    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('notes');
    }
}
Run Code Online (Sandbox Code Playgroud)

php laravel

1
推荐指数
1
解决办法
5922
查看次数

标签 统计

laravel ×1

php ×1