You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure about insert, though. Maybe toDatabase or save. The strange thing is that I have to call it before import, so it's a bit misleading. Maybe this issue must be redesigned...
The text was updated successfully, but these errors were encountered:
$users = (new FastExcel)->import('file.xlsx', function ($line) {
// Returns a User, just created in database. You could add your own rules here.
return User::create([
'name' => $line['Name'],
'email' => $line['Email']
]);
});
ON HOLD. See: #13
After #5 is done (and maybe #6), it could be great to allow to directly save to database. Something like:
After #6 is done:
Not sure about
insert
, though. MaybetoDatabase
orsave
. The strange thing is that I have to call it beforeimport
, so it's a bit misleading. Maybe this issue must be redesigned...The text was updated successfully, but these errors were encountered: