Skip to content

Commit 70c6e04

Browse files
committed
Readme updated
1 parent e8fa38f commit 70c6e04

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,17 @@ $image = $avatar->cache()->generate(); // 60 minutes
8282
````
8383
You can simply use ->cache() and it will set cache to 60 minutes, but you can also say ->cache(180) to cache for 180 minutes.
8484

85+
### Length - default: 2
86+
````php
87+
$image = $avatar->name('John Doe Johnson')->length(3)->generate(); // 3 letters = JDJ
88+
````
89+
8590
## Chaining it all together
8691
We will not use the ->font() method in this example; as I like the regular one.
8792

8893
````php
8994
return $avatar->name('Lasse Rafn')
95+
->length(2)
9096
->size(96) // 48 * 2
9197
->background('#8BC34A')
9298
->color('#fff')

0 commit comments

Comments
 (0)