how to use withoutGlobalScope() inside when function Laravel Eloquent

后端 未结 0 839
日久生厌
日久生厌 2021-02-08 22:51

I need to use withoutGlobalScope() if condition true. I have tried it with when function. But it only work outside of the function.

this is my model



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