diff --git a/3.1/imports/collection.md b/3.1/imports/collection.md index 1c17af8..41f9f2a 100644 --- a/3.1/imports/collection.md +++ b/3.1/imports/collection.md @@ -19,9 +19,9 @@ use Maatwebsite\Excel\Concerns\ToCollection; class UsersImport implements ToCollection { - public function collection(Collection $rows) + public function collection(Collection $collection) { - foreach ($rows as $row) + foreach ($collection as $row) { User::create([ 'name' => $row[0],