format('Y-m-d H:i:s'); } public function custom() { return $this->belongsTo(MarketCustomer::class, 'market_customer_id'); } public function beforeMan() { return $this->belongsTo(Consultant::class, 'before_consultant_id'); } public function currentMan() { return $this->belongsTo(Consultant::class, 'consultant_id'); } public function opBackPerson() { return $this->belongsTo(SysUser::class, 'change_user_id'); } public function opFrontPerson() { return $this->belongsTo(Consultant::class, 'change_consultant_id'); } }