rich-id/design-customization-bundle
A Laravel/PHP bundle for adding design customization to Rich ID applications. It provides configurable components and helpers for themes, layouts, and branding, letting users tailor the look and feel without custom code. Install via Composer, then publish the included assets and settings.
getCustomImageAbsoluteUrl exposes a fully-qualified URL for custom image variants, which unblocks features that can't rely on relative paths — outbound email templates, mobile clients, Open Graph/Twitter card meta tags, sitemap generation, and third-party syndication (RSS, partner feeds, CMS webhooks).url()/Storage::url()/config-driven disc logic across controllers, API resources, and Blade views, teams standardize on the package's helper. This is a small but real reduction in bespoke glue code, and it centralizes the "which disk / which prefix / which CDN host" decision in one place.Adopt when:
url(Storage::url(...)) calls or hardcoded CDN hostnames through your codebase.0.x version line: pin the version, read the changelog on each bump, and keep the call sites behind a thin application-level wrapper so a future rename is cheap.Look elsewhere when:
Diligence before adoption: confirm the method's behavior when no custom image exists (null vs. exception vs. fallback), confirm it honors the configured disk/CDN base rather than assuming APP_URL, and confirm whether it is covered by tests — an URL helper that silently emits http://localhost into a production email is a support-ticket generator.
To executives: This is a small, low-risk addition to a media-handling library we use. It lets the application produce complete, shareable image links — the kind needed for marketing emails, social media previews, partner feeds, and mobile apps — without engineering building and maintaining that logic themselves. No migration, no infrastructure cost, no user-visible change. Treat it as incremental capability, not a strategic bet: the library is still pre-1.0, so we pin the version and keep our usage behind a thin internal wrapper to avoid lock-in.
To engineering: v0.3.3 adds a single accessor, getCustomImageAbsoluteUrl, complementing the existing relative-path getter. It gives us one place to resolve custom image variants to fully-qualified URLs that respect the package's configured disk and path conventions, replacing ad-hoc url()/Storage::url() composition in resources, mailables, and Blade. Scope is deliberately narrow — this is URL construction only, not transformation, signing, or cache invalidation. Recommended adoption path: upgrade with a pinned constraint, wrap the call in an application-level helper so the package API stays a single seam, add tests asserting the output host in each environment (local, staging, production/CDN), and verify the empty-image behavior before relying on it in user-facing surfaces. Given the 0.x version line, review the changelog on each subsequent release for signature changes.
How can I help you explore Laravel packages today?