daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Jan 20th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top