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