better random names (KEBAB)

This commit is contained in:
Andras Bacsai
2023-05-10 13:09:03 +02:00
parent 946758e219
commit 27e867e6ad
2 changed files with 3 additions and 8 deletions

View File

@@ -13,6 +13,8 @@ use Illuminate\Support\Facades\Process;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Storage;
use Spatie\Activitylog\Contracts\Activity;
use Illuminate\Support\Str;
if (!function_exists('generalErrorHandler')) {
function generalErrorHandler(\Throwable $e, $that = null)
@@ -179,7 +181,7 @@ if (!function_exists('generateRandomName')) {
new \Nubs\RandomNameGenerator\Alliteration()
]
);
return $generator->getName();
return Str::kebab($generator->getName());
}
}