master
cody 3 months ago
parent a98c1bfc51
commit 77d8f31b07

@ -12,11 +12,10 @@ class Company extends SoftDeletesModel
public function getIsYhInvestedTextAttribute() public function getIsYhInvestedTextAttribute()
{ {
$array = [ if (empty($this->is_yh_invested)) {
0 => '否', return '否';
1 => '是', }
]; return $this->is_yh_invested == 1 ? '是' : '否';
return $array[$this->is_yh_invested] ?? '否';
} }
public function users() public function users()

Loading…
Cancel
Save