Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 6471050909740010
- 6.47105E+15
- 6471050909740000
- $collect = collect($model->toArray());
- $excelData = Excel::create('Endorsement', function($excel) use ($collect) {
- $excel->sheet('Endorsement', function ($sheet) use ($collect) {
- $this->template($sheet);
- foreach ($collect as $key => $rest) {
- $empid = strval($rest['empid']);
- $i = $key+2;
- $sheet->cell('A'.$i, $rest['ttype']);
- $sheet->cell('H'.$i, $empid);
- }
- });
- });
Add Comment
Please, Sign In to add comment