hasOne(Account::class,"user_code","user_code"); } public function business() { return $this->hasOne(Business::class,"code","business_code"); } }