avinash wrote a nice tutorial on how to import CSV data to local database in Laravel 5.

import CSV to Laravel

Importing CSV data to database

Hello every one, here we will see how to read data from a csv file, parse it and store it in our local database and finally display them in our view.

While working with data we come across different data formats like xml, csv, JSON, sql and others. CSV file, a comma separated value file is one the most common file type. Now we work with it, gets the data from the file and will store it database for our use.

Here we will go through a simple example to cover all the CRUD operations.

  • Step 1 : Create a database table
  • Step 2 : Read the CSV data
  • Step 3 : Store the data in database
  • Step 4 : Show the data from database

Complete post link : http://justlaravel.com/import-csv-data-store-database/?utm_source=learninglaravel.net

Working Demo : http://justlaravel.com/demos/import-csv-data-store-database/?utm_source=learninglaravel.net

Github Link : https://github.com/avinashn/ImportCSVdata-laravel/?utm_source=learninglaravel.net