Laravel - How to use collection inside a helper function

后端 未结 0 1028
忘了有多久
忘了有多久 2021-01-12 09:59

I want to use a helper function to have a clean eager loading constraint like so:

As you can see I use a function from my helper.php file which is this one:

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