hasOne(CouponMain::class,"id","coupon_main_id"); } public function bill() { return $this->hasOne(CouponBill::class,"id","bill_id"); } }