mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
15 lines
285 B
PHP
15 lines
285 B
PHP
<?php
|
|
|
|
namespace App\Server\SubdomainGenerator;
|
|
|
|
use App\Contracts\SubdomainGenerator;
|
|
use Illuminate\Support\Str;
|
|
|
|
class RandomSubdomainGenerator implements SubdomainGenerator
|
|
{
|
|
public function generateSubdomain(): string
|
|
{
|
|
return strtolower(Str::random(10));
|
|
}
|
|
}
|