bondarde/filament-local-avatar

Creates local avatar images from user's name

v1.0.0 2024-07-14 22:32 UTC

This package is auto-updated.

Last update: 2024-10-14 23:10:56 UTC


README

Latest Version on Packagist

Creates local avatar images from user's name with e-mail fallback. Used madel's properties, separators, avatar length, font sizes and fallback "name" are configurable.

Local avatar provider allows offline work and application deployment to sensitive and offline environments.

Installation

You can install the package via Composer:

composer require bondarde/filament-local-avatar

You can publish the config file with:

php artisan vendor:publish --tag="filament-local-avatar-config"

Optionally, you can publish the views using

php artisan vendor:publish --tag="filament-local-avatar-views"

Usage

    use BondarDe\FilamentLocalAvatar\LocalAvatarProvider;

    public function panel(Panel $panel): Panel
        {
           return $panel
                ->id()
                // ...
                ->defaultAvatarProvider(LocalAvatarProvider::class)
                // ...

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.