最佳答案
可以不写 query()
只是个人习惯问题。 Product::query()->where('on_sale', true)
与 Product::where('on_sale', true)
是等价的
讨论数量:
可以不写 query()
只是个人习惯问题。 Product::query()->where('on_sale', true)
与 Product::where('on_sale', true)
是等价的
可以不写 query()
只是个人习惯问题。 Product::query()->where('on_sale', true)
与 Product::where('on_sale', true)
是等价的
推荐文章: