mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
Update quickstart.blade.md
`php artisan make:session-table` for central database
This commit is contained in:
parent
3f60cdbe58
commit
bea3ecd707
1 changed files with 6 additions and 0 deletions
|
|
@ -141,6 +141,12 @@ 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. If you have any other migrations that are necessary for your application, move those migrations as well.
|
||||
|
||||
### Breeze migrations
|
||||
When combined with Laravel Breeze, the `sessions` table is expected to be present on the central database. If you're using Breeze run the following command;
|
||||
```
|
||||
php artisan make:session-table
|
||||
```
|
||||
|
||||
## Creating tenants {#creating-tenants}
|
||||
|
||||
> If you're using Laravel Sail, please refer the [Laravel Sail integration guide]({{ $page->link('integrations/sail') }}):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue