imliam/laravel-blade-helper
imliam/laravel-blade-helper provides convenient Blade helpers and directives for Laravel, streamlining common view tasks and reducing repetitive markup. It helps you write cleaner, more readable templates with less boilerplate, making everyday frontend work faster and simpler.
BladeHelper::hasDirective()) so a view can emit @vite, @livewireStyles, an analytics directive, or a first-party add-on's directive only when the provider is actually installed. This supports decisions like: ship one shared layout across product tiers instead of forking views per edition, and let add-on/module packages contribute directives without the host theme hard-coding them.Adopt it when:
Look elsewhere when:
Blade::directive() directly; this package is for discovery/registration plumbing, not directive authoring.@if/config; a directive-existence check is a proxy, not a substitute, for a business rule.#[Test] migration in v1.7.0 is a dev-only change. It does not affect consumers and imposes no PHPUnit constraint on your application.For executives (one paragraph): This is a small, low-risk utility that lets our Blade templates render optional features cleanly — showing an integration's markup only when that integration is actually present. The practical payoff is fewer broken pages and support tickets when a module isn't installed, and one shared set of templates across product tiers instead of per-tier forks. The v1.7.0 release is purely additive: Laravel 13 support, no breaking changes, no deprecations. It costs us nothing to take and it keeps our framework upgrade path clear.
For engineering (one paragraph): v1.7.0 adds Laravel 13 support and modernizes the package's own test suite (PHPUnit 12 schema, #[Test] attributes) — dev-only, no impact on our dependency graph. Upgrade is a composer update with no code changes expected; the 1.x line has been non-breaking. Use it where we currently guard optional directives with try/catch, isset checks, or duplicated layout files, and swap those for a directive-registry check. Do not use it as a feature-flag system — business gating stays in config. If we end up depending on it in more than a couple of places, revisit vendoring the ~200 lines; the maintainer bus factor, not the code, is the risk.
Decision asked of stakeholders: approve the version bump to v1.7.0 (no action required beyond routine dependency updates) and approve the pattern — directive-existence checks in shared layouts — as the standard approach for optional Blade directives in new packages.
How can I help you explore Laravel packages today?