PHP code example of bondarde / filament-local-avatar
1. Go to this page and download the library: Download bondarde/filament-local-avatar 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/ */
bondarde / filament-local-avatar example snippets
use BondarDe\FilamentLocalAvatar\LocalAvatarProvider;
public function panel(Panel $panel): Panel
{
return $panel
->id()
// ...
->defaultAvatarProvider(LocalAvatarProvider::class)
// ...
bash
php artisan vendor:publish --tag="filament-local-avatar-config"
bash
php artisan vendor:publish --tag="filament-local-avatar-views"