1 year ago

get the relationship of a relationship

Posted 1 year 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.