CampaignTypes::class, ]; // * RELATIONS /** * Get the brand that owns the Campaign * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function brand(): BelongsTo { return $this->belongsTo(Brand::class); } /** * Get coupons that owned by the Campaign * * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany */ public function coupons(): BelongsToMany { return $this->belongsToMany(Coupon::class); } }