Closed adel-bassiony-zz closed 6 years ago
abc.
is not a valid fqdn:
https://en.wikipedia.org/wiki/Fully_qualified_domain_name
see the docs for a few examples: https://laravel-tenancy.com/docs/hyn/5.3/creating-tenants#create-and-connect-hostname
yea the problem was in fqdn .. it should be ( abc.demo.dev ) bot only ( abc. ) 👌 thank you so much @luceos
Description I installed Tenancy in a new clean laravel project ( Demo )
and created a new tenant and it created well also migrated the database
now I trying to insert data in the tenant database but I get this error ( Database [tenant] not configured. ) I already searched for this error but I didn't get anything or how to fix it.
I created a tenant called ( abc ) and the domain I'm using is: ( abc.demo.dev ) also, I tried to use ( Mamp Pro ) & ( laravel valet ) but I get the same error every time.
when I create a new tent it's created well and a new database created
I think it's related to the subdomain because if I using ( anything.demo.dev ) it's opening the laravel page normally and get the same error when inserting data
so how I can fix it, please ? ..
Actual behavior laravel error ( Database [tenant] not configured. ) ..
Expected behavior Insert data in Tenant Database ..
Information
tenancy.php config
webserver.php config
.Env
.CreateTenant Command