Laravel migration: adding foreign key to the same table where ID is a string

前端 未结 0 1214
陌清茗
陌清茗 2020-12-21 23:37

I\'m trying to make "categories" migration, where each category refers it\'s parent category by ID in the same table.

Migration:

    Schema::         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题