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:
Vu Quang Tam 2020-09-18 22:43:04 +07:00 committed by GitHub
parent da3bdaedba
commit 5071ff5ba7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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} ## 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: 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: