generateUuid()}.svg"; Storage::put($path, $this->generate($user)); return $path; } protected function generate(User $user): SVG { return $this->generator->rounded() ->background($this->getRandomColor()) ->color("#F4F8FD") ->smooth() ->generateSvg($user->name); } protected function getRandomColor(): string { $colors = config("colors"); return Arr::random($colors); } protected function generateUuid(): string { return Str::uuid()->toString(); } }