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
$this->productService->create($data);
}
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community