generateUuid()}.svg"; Storage::put($path, $this->generate($user)); return $path; } protected function generate(User $user): SVG { return $this->generator->rounded() ->background($this->getColor($user->fullName)) ->color("#F4F8FD") ->smooth() ->fontSize(0.33) ->generateSvg($user->fullName); } protected function getColor(string $name): string { $colors = config("colors"); return $colors[strlen($name) % count($colors)]; } protected function generateUuid(): string { return Str::uuid()->toString(); } }