Update quickstart.blade.md

`php artisan make:session-table` for central database
This commit is contained in:
Lee Ravenberg 2024-05-19 15:27:24 +02:00 committed by GitHub
parent 3f60cdbe58
commit bea3ecd707
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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. 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} ## Creating tenants {#creating-tenants}
> If you're using Laravel Sail, please refer the [Laravel Sail integration guide]({{ $page->link('integrations/sail') }}): > If you're using Laravel Sail, please refer the [Laravel Sail integration guide]({{ $page->link('integrations/sail') }}):