diff --git a/app/Models/Company.php b/app/Models/Company.php index 080c4bb..a9feda8 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -6,6 +6,16 @@ class Company extends SoftDeletesModel { protected $casts = ['project_users' => 'json', 'partners' => 'json']; + protected $appends = ['is_yh_invested_text']; + + public function getIsYhInvestedTextAttribute() + { + $array = [ + 0 => '否', + 1 => '是', + ]; + return $array[$this->is_yh_invested] ?? ''; + } public function users() {