Skip to content

Commit

Permalink
Updated usage example in collection.md (#237)
Browse files Browse the repository at this point in the history
Fixed the name of the "collection" method parameter in the usage example
  • Loading branch information
realmrv authored Oct 18, 2024
1 parent 51b5c82 commit 857f2ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 3.1/imports/collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 857f2ed

Please sign in to comment.