Example #1
0
 /**
  * Get an excel table export.
  *
  * @return Response
  */
 public function export()
 {
     $tipeakun = new TipeAkun();
     $tipeakuns = $tipeakun->get($tipeakun->getFillable());
     $tipeakuns = $tipeakuns->toArray();
     if ($tipeakuns == []) {
         return view('tipeakun.export');
     }
     return ExcelHelper::export($tipeakuns, 'tipeakuns');
 }