mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
Laravel 8 note
This commit is contained in:
parent
a03cf96888
commit
738cfcb8df
1 changed files with 6 additions and 3 deletions
|
|
@ -111,13 +111,16 @@ protected function centralDomains(): array
|
||||||
return config('tenancy.central_domains');
|
return config('tenancy.central_domains');
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
In Laravel 8, call these methods manually from your RouteServiceProvider's boot() method, instead of the $this->routes() calls
|
|
||||||
|
If you're using Laravel 8, call these methods manually from your `RouteServiceProvider`'s `boot()` method, instead of the `$this->routes()` calls.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
$this->configureRateLimiting();
|
$this->configureRateLimiting();
|
||||||
$this->mapWebRoutes(); // Add this to boot
|
|
||||||
$this->mapApiRoutes(); // Add this to boot
|
$this->mapWebRoutes();
|
||||||
|
$this->mapApiRoutes();
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue