'datetime', 'date_end' => 'datetime', ]; public function products() { return $this->belongsToMany(Product::class); } public function discountType() { return $this->belongsTo(DiscountType::class, 'discount_type_id'); } }