1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-08-06 07:54:03 +00:00

Reference the DB_URL env var instead of DATABASE_URL

The env var got renamed in Laravel 11 to `DB_URL`
This commit is contained in:
lukinovec 2026-06-30 06:18:01 +02:00
parent f6d7ac13db
commit c784a26cee
3 changed files with 4 additions and 4 deletions

View file

@ -127,7 +127,7 @@ test('harden prevents tenants from using the database of another tenant', functi
'hardening disabled' => false,
])->with('db_managers');
test('database tenancy bootstrapper throws an exception if DATABASE_URL is set', function (string|null $databaseUrl) {
test('database tenancy bootstrapper throws an exception if DB_URL is set', function (string|null $databaseUrl) {
config(['tenancy.bootstrappers' => [DatabaseTenancyBootstrapper::class]]);
Event::listen(TenantCreated::class, JobPipeline::make([CreateDatabase::class])->send(function (TenantCreated $event) {