M
M
Mikhail2020-07-07 16:42:19
Laravel
Mikhail, 2020-07-07 16:42:19

Laravel how to download view or html file?

There is a front that makes a POST request to the back, an html file is formed on the back. But it returns to the console in the response as html without downloading. And how to make it so that the php Laravel backing would give it as downloadable?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Anton, 2020-07-07
@Fragster

https://habr.com/ru/post/151795/ , you may have to make a post request in the form of a form submission.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question