format('Y-m-d H:i:s'); } public function member() { return $this->hasOne(Member::class, 'member_id', 'join_pay_member_id') ->select('member_id', 'member_mobile'); } public function cert() { return $this->hasOne(MemberCert::class, 'join_cert_member_id', 'join_pay_member_id') ->select('join_cert_member_id', 'member_cert_name'); } }