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.
 
 
 
 
Tovi Jaeschke-Rogers 660fff801c Initial commit 2 years ago
app Initial commit 2 years ago
bootstrap Initial commit 2 years ago
config Initial commit 2 years ago
database Initial commit 2 years ago
public Initial commit 2 years ago
resources Initial commit 2 years ago
routes Initial commit 2 years ago
storage Initial commit 2 years ago
tests Initial commit 2 years ago
.editorconfig Initial commit 2 years ago
.env.example Initial commit 2 years ago
.gitattributes Initial commit 2 years ago
.gitignore Initial commit 2 years ago
.styleci.yml Initial commit 2 years ago
README.md Initial commit 2 years ago
artisan Initial commit 2 years ago
composer.json Initial commit 2 years ago
composer.lock Initial commit 2 years ago
package.json Initial commit 2 years ago
phpunit.xml Initial commit 2 years ago
server.php Initial commit 2 years ago
webpack.mix.js Initial commit 2 years ago

README.md

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.