Guest User

Untitled

a guest
Jan 20th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. 6471050909740010
  2.  
  3. 6.47105E+15
  4.  
  5. 6471050909740000
  6.  
  7. $collect = collect($model->toArray());
  8.  
  9. $excelData = Excel::create('Endorsement', function($excel) use ($collect) {
  10.  
  11. $excel->sheet('Endorsement', function ($sheet) use ($collect) {
  12.  
  13. $this->template($sheet);
  14.  
  15. foreach ($collect as $key => $rest) {
  16. $empid = strval($rest['empid']);
  17.  
  18. $i = $key+2;
  19. $sheet->cell('A'.$i, $rest['ttype']);
  20. $sheet->cell('H'.$i, $empid);
  21. }
  22. });
  23.  
  24. });
Add Comment
Please, Sign In to add comment