feat(tenant): separate admin and storefront website types

This commit is contained in:
2026-09-17 14:25:46 -03:00
parent b9b5f8ec9c
commit 6bc784519f
31 changed files with 325 additions and 143 deletions

View File

@@ -2,15 +2,15 @@
namespace App\Domains\Bootstrap\Services;
use App\Domains\Tenant\Models\WebsiteType;
use App\Domains\Tenant\Models\AdminWebsiteType;
class AdminAppBootstrapService
{
/** @return array{website_type: WebsiteType} */
/** @return array{website_type: AdminWebsiteType} */
public function get(string $domain): array
{
return [
'website_type' => WebsiteType::query()
'website_type' => AdminWebsiteType::query()
->with(['siteLogo', 'footerLogo', 'favicon'])
->where('dominio', $domain)
->firstOrFail(),