feat(tenant): add asset URL to tenant resource response

This commit is contained in:
2026-09-07 09:20:46 -03:00
parent 1e7a9b6876
commit ca4ea0aa6c
2 changed files with 11 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ class TenantResource extends JsonResource
'site_title' => $this->site_title
?? $this->websiteType?->site_title
?? 'ShopitFront',
'asset_url' => config('filesystems.disks.s3.url'),
'address' => $this->address,
'phone' => $this->phone,
'favicon' => ($this->favicon ?? $this->websiteType?->favicon)