Magento, Laravel, Eloquent.
this one by selecting only the columns we need from our relationship, we can do this by adding : followed by the columns we want to select from the relationship. public function index() { return view('products', [ 'products' => Products::query() ->select(['id', 'title', 'slug', 'thumbnail'])