Laravel Import csv to database -


i new laravel , know if there better way import data csv database.also need import data multiple tables if can me out great time saver me, sample code appreciated.

very wake description, snip of how it:

      $fp = fopen($vendor->product_feed_url, 'r');     $head = fgetcsv($fp, 1000, ',', '"');     while ($column = fgetcsv($fp, 1000, ',', '!')) {             try {                 if (!(count($head)==count($column))){                     continue;                 }                 $column = array_combine($head, $column); 

in $column, should have 1 line csv document.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -