Magento, Laravel, Eloquent.
queries, we only make 2. To use eager loading, you call the with method in your query public function index() { return view('products', [ 'products' => Products::query() ->select(['id', 'title', 'slug', 'thumbnail']) ->with('brand') ->paginate() ]); } We can even combine the previous technique and