79685246

Date: 2025-06-30 20:19:36
Score: 0.5
Natty:
Report link

I Think :
The reason your route() helper is still generating URLs against localhost.test in your PHPUnit tests is that, outside of an actual HTTP request, Laravel’s URL generator defaults to whatever you’ve set as your application’s base URL (i.e. config('app.url')), rather than the tenant’s domain. Calling tenancy()->initialize($tenant) sets up the database, cache, etc., but does not reconfigure the URL generator to use your tenant’s hostname

Why it happens

look to this link

Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: abod ali