mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 13:14:05 +00:00
Add UrlTenancyBootstrapper
This commit is contained in:
parent
21d55ef472
commit
1b00f5f1ae
3 changed files with 49 additions and 1 deletions
|
|
@ -118,7 +118,20 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
|
||||
public function register()
|
||||
{
|
||||
//
|
||||
/**
|
||||
* Example of CLI tenant URL root override:
|
||||
*
|
||||
* UrlTenancyBootstrapper::$rootUrlOverride = function (Tenant $tenant) {
|
||||
* $baseUrl = URL::to('/');
|
||||
* $scheme = str($baseUrl)->before('://') . '://';
|
||||
*
|
||||
* return str($baseUrl)
|
||||
* ->after($scheme)
|
||||
* ->prepend($tenant->getTenantKey() . '.')
|
||||
* ->prepend($scheme)
|
||||
* ->toString();
|
||||
*};
|
||||
*/
|
||||
}
|
||||
|
||||
public function boot()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue