Last active
October 27, 2016 12:16
-
-
Save etiennemarais/56a60bc7f1f7d12bb1be8218beae88ee to your computer and use it in GitHub Desktop.
Gets the rows from a csv file in laravel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Gets the rows from a csv file in laravel. via https://github.com/johnmarkmassey :+1: | |
*/ | |
$rows = array_map('str_getcsv', file(app_path('database/migrations/test_data.csv'))); | |
var_dump($rows); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment