hasOne(StoreCoupon::class, 'coupon_id', 'coupon_id'); } public function user() { return $this->hasOne(User::class, 'uid', 'uid'); } }