Laravel Recursive Relationships

后端 未结 7 1974
醉梦人生
醉梦人生 2020-11-28 21:22

I\'m working on a project in Laravel. I have an Account model that can have a parent or can have children, so I have my model set up like so:

public         


        
相关标签:
7条回答
  • 2020-11-28 21:49

    I'm doing something similar. I think the answer is to cache the output, and clear the cache any time the database is updated (provided your accounts themselves don't change much?)

    0 讨论(0)
提交回复
热议问题