Model: App\Models\Store.
Field yang digunakan
| Field | Peran |
|---|---|
id | UUID string tenant |
username | Identifier path atau subdomain |
domain | Domain fallback pada store resolution |
name | Nama toko untuk title/fallback |
logo | Asset logo fallback |
expired_at | Waktu expiry package/store |
features | Feature flags seperti hide branding |
invoice_id | Relasi invoice subscription |
Model memiliki relasi ke UserStore, SubscriptionInvoice, dan Product.
Tenant resolution
Published controller mencari store berdasarkan username atau host. Middleware juga menyimpan store yang telah ditemukan ke request attribute resolved_store.
Status expiry
Jika expired_at telah lewat, published dan preview flow dapat mengembalikan halaman 404. Format dan tipe tanggal harus diverifikasi pada data aktual karena source memiliki pembacaan string tanggal.