Skip to content

Commit 857f2ed

Browse files
authored
Updated usage example in collection.md (#237)
Fixed the name of the "collection" method parameter in the usage example
1 parent 51b5c82 commit 857f2ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

3.1/imports/collection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ use Maatwebsite\Excel\Concerns\ToCollection;
1919

2020
class UsersImport implements ToCollection
2121
{
22-
public function collection(Collection $rows)
22+
public function collection(Collection $collection)
2323
{
24-
foreach ($rows as $row)
24+
foreach ($collection as $row)
2525
{
2626
User::create([
2727
'name' => $row[0],

0 commit comments

Comments
 (0)