|
|
- # PADUA - CSV file upload
-
- -------------------------
-
- ## Approach
-
- - I decided on using Laravel 8 for this due to the framework making it easier to structure the code base.
- - I have split the functions used to verify to the transaction codes into a helper class, as if this was a production project then those functions will probably be used elsewhere.
- - I used the `str_getcsv` method to read each row, then column, of the csv data. This was done to prevent needing to write any files to the disc.
- - The project uses a single blade template to display the button to upload the file, and display the table. This prevents code duplication.
|