mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Update quickstart.blade.md add guide to add mapping central domain (#83)
* Update quickstart.blade.md * Update quickstart.blade.md Update notice for Laravel 8 * Laravel 8 note Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
This commit is contained in:
parent
da3bdaedba
commit
5071ff5ba7
1 changed files with 12 additions and 0 deletions
|
|
@ -112,6 +112,18 @@ protected function centralDomains(): array
|
|||
}
|
||||
```
|
||||
|
||||
If you're using Laravel 8, call these methods manually from your `RouteServiceProvider`'s `boot()` method, instead of the `$this->routes()` calls.
|
||||
|
||||
```php
|
||||
public function boot()
|
||||
{
|
||||
$this->configureRateLimiting();
|
||||
|
||||
$this->mapWebRoutes();
|
||||
$this->mapApiRoutes();
|
||||
}
|
||||
```
|
||||
|
||||
## Central domains {#central-domains}
|
||||
|
||||
Now we need to actually specify the central domains. A central domain is a domain that serves your "central app" content, e.g. the landing page where tenants sign up. Open the `config/tenancy.php` file and add them in:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue