Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

id column disapears #20

Closed
pajooh opened this issue Feb 7, 2014 · 4 comments
Closed

id column disapears #20

pajooh opened this issue Feb 7, 2014 · 4 comments

Comments

@pajooh
Copy link

pajooh commented Feb 7, 2014

i'm tyring to import a csv file containing id,title pair rows
doing

Excel::load($file, true) // second parameter will make sure the first row is interpreted as heading
    ->select(array('id', 'title'))
    ->toArray();

return just array of titles, someone (this package of PHPExcel) eats id column!

@MaatwebsiteSupport
Copy link
Contributor

Could you provide a couple of rows from this CSV file, so I can test with it.

@pajooh
Copy link
Author

pajooh commented Feb 7, 2014

my titles are in persian, but csv is in this format

title,id
Some title,5
Another title,6

@MaatwebsiteSupport
Copy link
Contributor

Should work now :)

@pajooh
Copy link
Author

pajooh commented Feb 7, 2014

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants