Commit d5a5d479 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

membership form now is a file download

parent 8458dfdf
......@@ -87,9 +87,9 @@ Route::group(
Route::get('beitritt', function () {
if (LaravelLocalization::getCurrentLocale() === "de") {
return response()->file(storage_path('app/public/aufnahmeantrag-de.pdf'));
return response()->download(storage_path('app/public/aufnahmeantrag-de.pdf'), "SUMA-EV_Beitrittsformular_" . (new \DateTime())->format("Y_m_d") . ".pdf", ["Content-Type" => "application/pdf"]);
} else {
return response()->file(storage_path('app/public/aufnahmeantrag-en.pdf'));
return response()->download(storage_path('app/public/aufnahmeantrag-en.pdf'), "SUMA-EV_Membershipform_" . (new \DateTime())->format("Y_m_d") . ".pdf", ["Content-Type" => "application/pdf"]);
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment