How to properly implement a file upload in Laravel?

Hello!
Is there a website where implemented in many places upload files using normal form (multipart/form-data). Recommended download one, because occasionally there are errors with loading in one form to another. How to do it correctly in Laravel 4.2? I imagine that the controller is called and is passed an array of files (for example, a typical $_FILES), then magic is SOMETHING THAT returns a result.
So it should be SOMETHING (in Laravel 4.2)? How to make a single entry point to this framework, not to be 10-15 places with duplicate code.
July 8th 19 at 16:25
2 answers
July 8th 19 at 16:27
Solution
1. A template input, and a harness (if you have animated multiupload, respectively, the block that will display the progress and connection of the script, who does it all).
2. Class that parses the $_FILES array with a specific name and returns its data as an array. With the optional test are displayed.

In General, to see what the code is repeated each time, and collect it in a separate class. Regular refactoring, framework here - business the tenth.
July 8th 19 at 16:29
Solution
https://bitbucket.org/shvetsov1993/inna
then I crooked ,but realized the download of the image in the photo gallery, etc.

Find more questions by tags LaravelPHPProgramming