master
cody 3 months ago
parent f0b149aa1f
commit 0b6d63ce23

@ -49,6 +49,7 @@ class BaseExport implements FromCollection
$newList[] = $this->intToSting($temp); $newList[] = $this->intToSting($temp);
} }
array_unshift($newList, $header); //插入表头 array_unshift($newList, $header); //插入表头
dd($newList);
return $newList; return $newList;
} }

@ -51,7 +51,7 @@ class Course extends SoftDeletesModel
$array = [0 => '否', 1 => '是']; $array = [0 => '否', 1 => '是'];
return $array[$this->attributes['auto_schoolmate']]; return $array[$this->attributes['auto_schoolmate']];
} }
public function getIsVirtualTextAttribute() public function getIsVirtualTextAttribute()
{ {
$array = [0 => '否', 1 => '是']; $array = [0 => '否', 1 => '是'];

Loading…
Cancel
Save