预加载和延迟预加载的使用场景有什么区别,不太理解。
return view('orders.show', ['order' => $order->load(['items.productSku', 'items.product'])]);
这里为什么使用延迟预加载
推荐文章: