lshorz/lavatar

Create awesome unique avatar for Laravel

1.2 2019-10-10 09:02 UTC

This package is auto-updated.

Last update: 2022-04-30 14:14:02 UTC


README

Create awesome unique avatar for Laravel5.4

perview

Preview

Preview

Installation

$ composer require lshorz/lavatar

'providers' => [
    ...
    
    Lshorz\Lavatar\LavatarServiceProvider::class,
],
'aliases' => [
    ...
    
    'Lavatar' => Lshorz\Lavatar\Facades\Lavatar::class,

],

Example

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');
});