메소드 | 설명 | |
---|---|---|
__construct ( array $config, Illuminate\Cache\CacheManager $cache, Laravolt\Avatar\InitialGenerator $initialGenerator ) | Avatar constructor. | |
__toString ( ) : String | ||
create ( $name ) | ||
getImageObject ( ) | ||
getInitial ( ) | ||
save ( $path, $quality = 90 ) | ||
setBackground ( $hex ) | ||
setBorder ( $size, $color ) | ||
setDimension ( $width, $height = null ) | ||
setFont ( $font ) | ||
setFontFolder ( $folders ) | ||
setFontSize ( $size ) | ||
setForeground ( $hex ) | ||
setShape ( $shape ) | ||
toBase64 ( ) |
메소드 | 설명 | |
---|---|---|
buildAvatar ( ) | ||
cacheKey ( ) | ||
chooseFont ( ) | ||
createCircleShape ( ) | ||
createShape ( ) | ||
createSquareShape ( ) | ||
getBorderColor ( ) | ||
getRandomBackground ( ) | ||
getRandomElement ( $array, $default ) | ||
getRandomForeground ( ) | ||
setRandomFont ( ) |
public __construct ( array $config, Illuminate\Cache\CacheManager $cache, Laravolt\Avatar\InitialGenerator $initialGenerator ) | ||
$config | array | |
$cache | Illuminate\Cache\CacheManager | |
$initialGenerator | Laravolt\Avatar\InitialGenerator |