I want to get the tenant ID when new Tenant is created so I can seed my database and the table need tenant_id as the foreign key.
I’ve created a seeder in DatabaseSeedersTenantUserProvider.php
Inside this file I need to get the tenant ID. I tried using $this->tenant->getTenantKey() as well as created a Dependency in constructor but not working.