mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Update quickstart.blade.md
Fix central domain show 404
This commit is contained in:
parent
6832de38bb
commit
45bfcb0818
1 changed files with 16 additions and 0 deletions
|
|
@ -85,6 +85,22 @@ In other words, it creates & migrates the tenant's database after he's created
|
||||||
We'll make a small change to the `app/Providers/RouteServiceProvider.php` file. Specifically, we'll make sure that central routes are registered on central domains only.
|
We'll make a small change to the `app/Providers/RouteServiceProvider.php` file. Specifically, we'll make sure that central routes are registered on central domains only.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
|
public function boot()
|
||||||
|
{
|
||||||
|
$this->configureRateLimiting();
|
||||||
|
$this->mapWebRoutes(); // Add this to boot()
|
||||||
|
$this->mapApiRoutes(); // Add this to boot()
|
||||||
|
|
||||||
|
$this->routes(function () {
|
||||||
|
Route::middleware('web')
|
||||||
|
->group(base_path('routes/web.php'));
|
||||||
|
|
||||||
|
Route::prefix('api')
|
||||||
|
->middleware('api')
|
||||||
|
->group(base_path('routes/api.php'));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
...
|
||||||
protected function mapWebRoutes()
|
protected function mapWebRoutes()
|
||||||
{
|
{
|
||||||
foreach ($this->centralDomains() as $domain) {
|
foreach ($this->centralDomains() as $domain) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue