Support the ongoing development of →
Last updated 2 years ago.

Also, If different product types have different attributes, how should my repository create function prepare the product details to be sent for persistence?

class ProductRepository
    // other methods

    public function create($details) {
        // PROBLEM:
        // How should I handle the preparation of data to be sent for saving
        // since different product types have different attributes


Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.