From 857f2ed0b7dd2a386a343c72069313dfa2b48a39 Mon Sep 17 00:00:00 2001 From: Roman Morgunov Date: Fri, 18 Oct 2024 18:47:43 +0400 Subject: [PATCH] Updated usage example in collection.md (#237) Fixed the name of the "collection" method parameter in the usage example --- 3.1/imports/collection.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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],