update users migration name

This commit is contained in:
Samuel Štancl 2024-10-03 21:45:07 +02:00 committed by GitHub
parent f5eb95e16b
commit 6184708cf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -139,7 +139,7 @@ Route::get('/', function () {
## Migrations {#migrations} ## Migrations {#migrations}
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/0001_01_01_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.
## Creating tenants {#creating-tenants} ## Creating tenants {#creating-tenants}