belongsToMany(Product::class, 'customer_product') ->withPivot('purchase_date') ->withTimestamps(); } public function feedbacks(): HasMany { return $this->hasMany(Feedback::class); } }