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