* @copyright assimon * @link http://utf8.hk/ */ public function goods() { return $this->belongsToMany(Goods::class, 'coupons_goods', 'coupons_id', 'goods_id'); } public static function getStatusUseMap() { return [ self::STATUS_USE => admin_trans('coupon.fields.status_use'), self::STATUS_UNUSED => admin_trans('coupon.fields.status_unused'), ]; } }