diff --git a/app/Exports/BaseExport.php b/app/Exports/BaseExport.php index 0b81632..a7d8d7b 100755 --- a/app/Exports/BaseExport.php +++ b/app/Exports/BaseExport.php @@ -49,6 +49,7 @@ class BaseExport implements FromCollection $newList[] = $this->intToSting($temp); } array_unshift($newList, $header); //插入表头 + dd($newList); return $newList; } diff --git a/app/Models/Course.php b/app/Models/Course.php index 92aad96..487fbc3 100755 --- a/app/Models/Course.php +++ b/app/Models/Course.php @@ -51,7 +51,7 @@ class Course extends SoftDeletesModel $array = [0 => '否', 1 => '是']; return $array[$this->attributes['auto_schoolmate']]; } - + public function getIsVirtualTextAttribute() { $array = [0 => '否', 1 => '是'];