PHP code example of finity-labs / fin-avatar
1. Go to this page and download the library: Download finity-labs/fin-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/ */
finity-labs / fin-avatar example snippets
use FinityLabs\FinAvatar\AvatarProviders\UiAvatarsProvider;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->defaultAvatarProvider(UiAvatarsProvider::class);
}
php artisan vendor:publish --tag=fin-avatar-config
bash
php artisan finity-labs:install