laravel errno 150 foreign key constraint is incorrectly formed

前端 未结 11 1562
陌清茗
陌清茗 2020-12-14 03:09

Can anybody help me to solve this problem?

There are 3 tables with 2 foreign keys:

Schema::create(\'users\', function (Blueprint $table) {
    $table-&         


        
11条回答
  •  心在旅途
    2020-12-14 03:58

    if you set referencing fields and be have exactly the same data type but error exists you can change date migration file just its working

提交回复
热议问题