Nasr1
173
2
Laravel

get the relationship of a relationship

Posted 8 months ago by Nasr1

so i have a slider , which has many to many relationship with products ,

        $sliders = Slider::with('products')->with('translations')->paginate(5);
        return  $sliders;

i want to load a product relationship too . for ex , the translation relationship in product model how can i do this ?

Please sign in or create an account to participate in this conversation.