Skip to content

Commit 4995724

Browse files
committed
Updated readme
1 parent 43116ca commit 4995724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class MailFactory
8686
}
8787

8888
$mail1 = $container->get(MailFactory::class)->createMail('info@example.com');
89-
$mail2 = $container->create(Mail::class, [1 =>'info@example.com']);
89+
$mail2 = $container->create(Mail::class, ['to' =>'info@example.com']);
9090

9191
```
9292
The ```create()``` method will automatically resolve the ```Config``` dependency for ```Mail```.

0 commit comments

Comments
 (0)