mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
wip
This commit is contained in:
14
app/Server/SubdomainGenerator/RandomSubdomainGenerator.php
Normal file
14
app/Server/SubdomainGenerator/RandomSubdomainGenerator.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Server\SubdomainGenerator;
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
use App\Contracts\SubdomainGenerator;
|
||||
|
||||
class RandomSubdomainGenerator implements SubdomainGenerator
|
||||
{
|
||||
public function generateSubdomain(): string
|
||||
{
|
||||
return strtolower(Str::random(10));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user