Suppose you uploaded an image in a Tenant workspace say test.localhost and the asset or tenant_asset helper return url like http://test.localhost:8000/tenancy/assets/2/logoipsum-381.png. When you visit the URL, it cannot detect the file and show error Tenant could not be identified on domain test.localhost.
If you facing this issue, then this solution for you.
- You configured your disk properly in tenancy.filesystem and filesystem config.
- Set tenancy.filesystem.asset_helper_tenancy false to avoid conflict with central assets.
- If you are using spatie media library make sure, you are using TenantAwareUrlGenerator by extending DefaultUrlGenerator. Here is the ref -> laravel-medialibrary