Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public static function downloadAll() |
||
13 | { |
||
14 | Excel::create('Responses '.date('Y-m-d'), function ($excel) { |
||
15 | $excel->sheet('Responses', function ($sheet) { |
||
16 | $sheet->freezeFirstRow(); |
||
17 | |||
18 | $sheet->cells('A1:Z1', function ($cells) { |
||
19 | $cells->setFontWeight('bold'); |
||
20 | $cells->setBorder('node', 'none', 'solid', 'none'); |
||
21 | }); |
||
22 | |||
23 | $sheet->fromModel(self::all()); |
||
24 | }); |
||
25 | })->download('xlsx'); |
||
26 | } |
||
27 | } |
||
28 |