PHP code example of tempi-marathon / filament-local-avatars
1. Go to this page and download the library: Download tempi-marathon/filament-local-avatars library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tempi-marathon / filament-local-avatars example snippets
use TempiMarathon\FilamentLocalAvatars\FilamentLocalAvatarsPlugin;
return $panel
// ...
->plugin(FilamentLocalAvatarsPlugin::make());
use TempiMarathon\FilamentLocalAvatars\Contracts\HasAvatarBackgroundColor;
class User extends Authenticatable implements HasAvatarBackgroundColor
{
public function getAvatarBackgroundColor(): ?string
{
return $this->avatar_color;
}
}
bash
php artisan vendor:publish --tag=filament-local-avatars-config