#48 - user avatars using ui-avatars.com

This commit is contained in:
Adrian Hopek
2022-03-04 09:25:28 +01:00
parent 697f3395bd
commit ecae457c1f
21 changed files with 192 additions and 266 deletions

View File

@@ -17,6 +17,6 @@ return [
],
],
"links" => [
public_path("avatars") => storage_path("app/avatars"),
public_path("storage") => storage_path("app/storage"),
],
];

View File

@@ -8,13 +8,13 @@ return [
"sync" => [
"driver" => "sync",
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
'queue' => env('REDIS_QUEUE', 'default'),
'retry_after' => 90,
'block_for' => null,
'after_commit' => false,
"redis" => [
"driver" => "redis",
"connection" => "default",
"queue" => env("REDIS_QUEUE", "default"),
"retry_after" => 90,
"block_for" => null,
"after_commit" => false,
],
],
"failed" => [

21
config/ui-avatars.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
return [
"provider" => "api",
"default_region" => "eu",
"length" => 2,
"image_size" => 48,
"font_size" => 0.33,
"rounded" => true,
"smooth_rounding" => true,
"uppercase" => true,
"background_color" => "#a0a0a0",
"font_color" => "#F4F8FD",
"font_bold" => true,
"providers" => [
"api" => Rackbeat\UIAvatars\Generators\ApiGenerator::class,
"local" => Rackbeat\UIAvatars\Generators\LocalGenerator::class,
],
];