this actual number
6471050909740010
and get replace by excel here the result
6.47105E+15
6471050909740000
This my code
$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);
}
});
});
data inside $collect
all is string event the number store as string