Interface LaravelUi5\Core\Contracts\TenantInterface

Lightweight tenant descriptor available at bootstrap time.

Intent:

  • Immutable, DB-free reference to the current tenant.
  • Generated per-tenant PHP class (e.g., in ./app/Tenants/ACME.php).
  • Provides a stable ID, a display name, a locale, and an absolute asset root.

Notes:

  • Keep implementations slim (no I/O, no secrets, no lazy-loading).
  • getAssetPath() should return an absolute filesystem path to the tenant’s asset root (logos, templates, CI files), e.g.: return DIR . '/assets';
  • Do NOT return web URLs here. Build URLs via your delivery layer (e.g., a controller/Filesystem disk or a small TenantAssets helper).
Methods