archtechx / tenancy

Automatic multi-tenancy for Laravel. No code changes needed.
https://tenancyforlaravel.com
MIT License
3.68k stars 434 forks source link

Postgres #1248

Closed mahmoudreyaddev1 closed 2 months ago

mahmoudreyaddev1 commented 2 months ago

Bug description

$tenant1 = App\Models\Tenant::create(['id' => 'foo']);

SQLSTATE[42601]: Syntax error: 7 ERROR: zero-length delimited identifier at or near """" LINE 1: create table "" () ^ (Connection: tenant, SQL: create table "" ()).

Steps to reproduce

try creating tenant using $tenant1 = App\Models\Tenant::create(['id' => 'foo']); doesn't work neither from tinker or from controller action

Expected behavior

return Created Tenant Model

Laravel version

8.2.0

stancl/tenancy version

3.1.0

stancl commented 2 months ago

Please use our Discord for support questions.