hasOne(Category::class, 'id',"type"); } public function account() { return $this->hasOne(Account::class, 'business_code',"code"); } }