You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
644 B

2 years ago
  1. # PADUA - CSV file upload
  2. -------------------------
  3. ## Approach
  4. - I decided on using Laravel 8 for this due to the framework making it easier to structure the code base.
  5. - 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.
  6. - 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.
  7. - The project uses a single blade template to display the button to upload the file, and display the table. This prevents code duplication.