Exemplo n.º 1
0
 public function export(TranslationsExporter $exporter)
 {
     $exporter->export();
     return redirect()->route('admin.translation.translation.index')->withSuccess(trans('translation::translations.Translations exported'));
 }
 public function export(TranslationsExporter $exporter)
 {
     return response()->make($exporter->export(), ["Content-Type" => "application/csv", "Content-Disposition" => "attachment; filename=export_{$exporter->getFileName()}.csv", "Pragma" => "no-cache"]);
 }