mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 21:45:55 +00:00
Added custom server host ability
This commit is contained in:
@@ -106,9 +106,9 @@ class Factory
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function share($sharedUrl, $subdomain = null)
|
||||
public function share($sharedUrl, $subdomain = null, $serverHost = null)
|
||||
{
|
||||
app('expose.client')->share($sharedUrl, $subdomain);
|
||||
app('expose.client')->share($sharedUrl, $subdomain, $serverHost);
|
||||
|
||||
return $this;
|
||||
}
|
||||
@@ -120,11 +120,11 @@ class Factory
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function shareFolder(string $folder, string $name, $subdomain = null)
|
||||
public function shareFolder(string $folder, string $name, $subdomain = null, $serverHost = null)
|
||||
{
|
||||
$host = $this->createFileServer($folder, $name);
|
||||
|
||||
$this->share($host, $subdomain);
|
||||
$this->share($host, $subdomain, $serverHost);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user