Package Data | |
---|---|
Maintainer Username: | lshorz |
Maintainer Contact: | lshzhuhai@163.com (Marven Liao) |
Package Create Date: | 2017-04-25 |
Package Last Update: | 2021-06-02 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:16:27 |
Package Statistics | |
---|---|
Total Downloads: | 107 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 5 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Create awesome unique avatar for Laravel5.4
$ composer require lshorz/lavatar
'providers' => [
...
Lshorz\Lavatar\LavatarServiceProvider::class,
],
'aliases' => [
...
'Lavatar' => Lshorz\Lavatar\Facades\Lavatar::class,
],
Display image
Lavatar::displayImage('user');
or use helper
lavatar_img('Hello');
Get the base64 uri
<img src="{{ Lavatar::getAvatarBase64('user', 120, null, 'FFFFFF') }}" />
or
Route::get('/test', function(){
return lavatar_base64('hello');
});