This commit is contained in:
Samuel Štancl 2019-11-10 15:42:13 +01:00
parent be8d1fa497
commit c69505a09a
8 changed files with 51 additions and 14 deletions

View file

@ -7,17 +7,6 @@ section: content
# Miscellaneous Tips {#misc-tips}
## Tenant Redirect {#tenant-redirect}
> To enable this feature, uncomment the `Stancl\Tenancy\Features\TenantRedirect::class` line in your `tenancy.features` config.
A customer has signed up on your website, you have created a new tenant and now you want to redirect the customer to their website. You can use the `tenant()` method on Redirect, like this:
```php
// tenant sign up controller
return redirect()->route('dashboard')->tenant($domain);
```
## Custom ID scheme
If you don't want to use UUIDs and want to use something more human-readable (even domain concatenated with uuid, for example), you can create a custom class for this: