Closed bkrajendra closed 4 years ago
can we just add more file type to following array to get it working?
public static function export($class, $filename, $type = 'csv') { if (! in_array($type, ['xls', 'csv'])) { $type = 'csv'; } $fn = $filename; return self::excel()->download(new $class, $fn.'.'.$type); }
why its only limited to ['xls', 'csv'] can we just allow whats passed as an argument from exportmethod?
['xls', 'csv']
export
I guess it does support many types
yes, you're right. Will do that
can we just add more file type to following array to get it working?
why its only limited to
['xls', 'csv']
can we just allow whats passed as an argument fromexport
method?I guess it does support many types