Как присоединиться к Forignkey Constrain Iin laravel 7 - PullRequest
0 голосов
/ 19 марта 2020

Я пытаюсь присоединиться к двум таблицам Миграционной схемы, приведенным ниже

    Schema::create('products', function (Blueprint $table) {
        $table->id();
        $table->string('name');
        $table->string('description',1000);
        $table->string('qty');
        $table->string('status')->default(Product::UNAVILABE_PROODUCT);
        $table->bigInteger('seller_id');
        $table->timestamps();
       $table->foreign('seller_id')->references('id')->on('users'); 
    });

и таблице пользователей

    Schema::create('users', function (Blueprint $table) {
        $table->id();
        $table->string('name');
        $table->string('email')->unique();
        $table->timestamp('email_verified_at')->nullable();
        $table->string('verified')->dafult(User::UNVARIFIED_USER);
        $table->string('password');
        $table->string('verification_token')->nullable();
        $table->string('admin')->dafult(User::REGULERUSER);
        $table->rememberToken();
        $table->timestamps();
    });

, она показывает мне неправильный формат ограничения ключа иностранца

...