Laravel 8 note

This commit is contained in:
Samuel Štancl 2020-09-18 17:42:00 +02:00 committed by GitHub
parent a03cf96888
commit 738cfcb8df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
} }
``` ```