old Laravel sail references hyperlinked to new page

This commit is contained in:
Chinmay Purav 2022-10-01 02:18:17 +05:30
parent b1f984de4a
commit 89f3c6ec14
2 changed files with 4 additions and 13 deletions

View file

@ -60,10 +60,8 @@ The list of domains that host your [central app]({{ $page->link('the-two-applica
This config array lets you enable, disable or add your own [tenancy bootstrappers]({{ $page->link('tenancy-bootstrappers') }}). This config array lets you enable, disable or add your own [tenancy bootstrappers]({{ $page->link('tenancy-bootstrappers') }}).
### Database {#database} ### Database {#database}
> Note: If you're using [Laravel Sail](https://laravel.com/docs/9.x/sail), ensure that `DB_USERNAME` has the necessary permissions. You can grant privileges to users by running `GRANT ALL PRIVILEGES on *.* to 'sail'@'%';` in the MySQL console.
> Once you have finalized the permissions, always be sure to reload all the privileges `FLUSH PRIVILEGES;`
`tenancy.database.*` >If you're using Laravel Sail, please refer the [Laravel Sail integration guide]({{ $page->link('integrations/sail') }}):
This section is relevant to the multi-database tenancy, specifically, to the `DatabaseTenancyBootstrapper` and logic that manages tenant databases. This section is relevant to the multi-database tenancy, specifically, to the `DatabaseTenancyBootstrapper` and logic that manages tenant databases.

View file

@ -136,14 +136,7 @@ Now we need to actually specify the central domains. A central domain is a domai
], ],
``` ```
If you're using Laravel Sail, no changes are needed, default values are good to go: >If you're using Laravel Sail, please refer the [Laravel Sail integration guide]({{ $page->link('integrations/sail') }}):
```php
'central_domains' => [
'127.0.0.1',
'localhost',
],
```
## Tenant routes {#tenant-routes} ## Tenant routes {#tenant-routes}
@ -177,8 +170,8 @@ Route::get('/', function () {
To have users in tenant databases, let's move the `users` table migration (the file `database/migrations/2014_10_12_000000_create_users_table.php` or similar) to `database/migrations/tenant`. This will prevent the table from being created in the central database, and it will be instead created in the tenant database when a tenant is created — thanks to our event setup. To have users in tenant databases, let's move the `users` table migration (the file `database/migrations/2014_10_12_000000_create_users_table.php` or similar) to `database/migrations/tenant`. This will prevent the table from being created in the central database, and it will be instead created in the tenant database when a tenant is created — thanks to our event setup.
## Creating tenants {#creating-tenants} ## Creating tenants {#creating-tenants}
> Note: If you're using [Laravel Sail](https://laravel.com/docs/9.x/sail), ensure that `DB_USERNAME` has the necessary permissions. You can grant privileges to users by running `GRANT ALL PRIVILEGES on *.* to 'sail'@'%';` in the MySQL console.
> Once you have finalized the permissions, always be sure to reload all the privileges `FLUSH PRIVILEGES;` >If you're using Laravel Sail, please refer the [Laravel Sail integration guide]({{ $page->link('integrations/sail') }}):
For testing purposes, we'll create a tenant in `tinker` — no need to waste time creating controllers and views for now. For testing purposes, we'll create a tenant in `tinker` — no need to waste time creating controllers and views for now.