mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-13 02:34:03 +00:00
sail notes
This commit is contained in:
parent
53f9125946
commit
f92c646ae9
4 changed files with 5 additions and 2 deletions
|
|
@ -60,6 +60,7 @@ 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 the following command in MySQL console `grant create on *.* to 'sail'@'%';`.
|
||||
|
||||
`tenancy.database.*`
|
||||
|
||||
|
|
|
|||
|
|
@ -176,6 +176,8 @@ To have users in tenant databases, let's move the `users` table migration (the f
|
|||
|
||||
## 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 the following command in MySQL console `grant create on *.* to 'sail'@'%';`.
|
||||
|
||||
For testing purposes, we'll create a tenant in `tinker` — no need to waste time creating controllers and views for now.
|
||||
|
||||
```php
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue