@ -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()