A hostname only needs a hostname (tada) and tenant and can be attached to or detached from a website. You are free to add hostnames to any tenant you like, In the future we can use these to have domains owned by one tenant used in websites owned by another tenant.
|
|
$someHostname = \App::make('Laraflock\MultiTenant\Contracts\HostnameRepositoryContract')->create([ 'hostname'=> 'some-hostname.org', 'website_id' => $someSite->id, 'tenant_id => 1 ]);
|
Using the previous example we would now be able to add the hostname "some-hostname.org" to the previously created website of tenant 1.
|
|