diff --git a/source/docs/v3/configuration.blade.md b/source/docs/v3/configuration.blade.md index 6912889..9b3fe05 100644 --- a/source/docs/v3/configuration.blade.md +++ b/source/docs/v3/configuration.blade.md @@ -60,7 +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') }}). ### Database {#database} -> Note: If you're using [Laravel Sail](https://laravel.com/docs/9.x/sail), ensure that `DB_USERNAME` has the necessary permissions to create databases. You can grant access to users by running `grant create on *.* to 'sail'@'%';` in the MySQL console. +> 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.*` diff --git a/source/docs/v3/quickstart.blade.md b/source/docs/v3/quickstart.blade.md index 39dce5e..a75f39e 100644 --- a/source/docs/v3/quickstart.blade.md +++ b/source/docs/v3/quickstart.blade.md @@ -177,8 +177,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. ## 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 to create databases. You can grant access to users by running `grant create on *.* to 'sail'@'%';` in the MySQL console. +> 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;` For testing purposes, we'll create a tenant in `tinker` — no need to waste time creating controllers and views for now.