Catch all for null subdomains
This commit is contained in:
parent
80d033b952
commit
eaebaccdaf
1 changed files with 4 additions and 0 deletions
|
|
@ -337,6 +337,10 @@ class Import implements ShouldQueue
|
|||
|
||||
if(!MultiDB::checkDomainAvailable($data['subdomain']))
|
||||
$data['subdomain'] = MultiDB::randomSubdomainGenerator();
|
||||
|
||||
if(strlen($data['subdomain']) == 0)
|
||||
$data['subdomain'] = MultiDB::randomSubdomainGenerator();
|
||||
|
||||
}
|
||||
|
||||
$rules = (new UpdateCompanyRequest())->rules();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue