12345678910111213141516171819202122232425262728 |
- <?php
- namespace App\Admin\Exports\Jobfairout;
- use App\Admin\Exports\ViewExport;
- use Illuminate\Contracts\View\View;
- use Illuminate\Support\Collection;
- class FeedbackExport extends ViewExport
- {
- /**
- * 设置文件名
- * @return string
- */
- public function getFilename(): string
- {
- return "feedback.xls";
- }
- /**
- * 渲染对应的视图
- * @param Collection $data 导出的数据
- * @return View
- */
- public function getView(Collection $data): View
- {
- return view('admin.exports.jobfairout.feedback', ['data'=>$data]);
- }
- }
|