we have 5 companies on our self hosted v5, when hitting the route /client/login on the main domain, our clients see the “client portal” with the logo from the 1st company in our list of 5
two questions
how can i set it so company 3 of 5 in my list of companies is the default not company 1 of 5
is there a way to have a portal for each company that shows the correct brand?
thanks @juwillsee but i am not asking about separate admin domains per company, rather separate client portal urls that show seperate branding.
I already have the domain url setup on each brand, and each url resolves to the host that powers invoice ninja. but what is not happening is the client portal showing the logo for the correct company.
it is possible to show the correct logo for multi company configurations, if you append the company_key (companies.company_key from the db) to the end of the login url…
that helps a bit, but that does not help when the user clicks a link in their email to pay online, right? because when i test i see the one logo and not the logo relative to the email with a link to pay online.
I discovered by digging in the code that in order for the company_key to be set by the domain_db middleware you need to enable MULTI_DB_ENABLED=true in .env
Then the domain_db middleware will be able to set the correct company_key in the session.
BUT the client portal still loads the default company’s info.
I haven’t dug in too deep but I suspect there’s some kind of issue with the client portal script not pulling in or using the company_key at the correct time in the script.