digitallyhappy/toggle-field-for-backpack
A toggle switch field for Backpack for Laravel admin panels, letting you edit boolean columns with a clean on/off switch instead of a checkbox. Drop it into your field definitions to make true/false settings faster and clearer to manage.
composer.json is a standing liability (security advisories, Laravel major bumps, abandoned-repo risk). This release adds no features — only a compatibility bump and docs/gitignore hygiene — which is a signal to keep the dependency pinned and monitor rather than deeply integrate.Consider it when all of the following hold:
composer.lock and can absorb a breaking major (2.x) deliberately during a planned Backpack upgrade.Look elsewhere or build in-house when:
To executives: This is a minor release of a small internal admin-UI component, not a product feature. Its only substantive change is adding support for Backpack v5, the newer version of our admin panel framework. Practical impact: it removes a blocker if and when we choose to upgrade our admin tooling, at effectively zero cost. No customer-facing change, no new spend, no new vendor relationship. Recommendation: adopt the version, keep it pinned, and treat it as routine maintenance rather than a strategic bet.
To engineering: 2.0.1 adds Backpack v5 support (PR #8, from Backpack's own maintainer, which is a positive signal), fixes the README's file-location guidance, and adds an initial .gitignore. There are no new features, no API changes, and no deprecations beyond the 2.x line already targeting v5. Concretely: bump the constraint, verify the field renders and persists correctly on a v5 panel, and confirm the toggle's underlying column cast and validation still behave. Two caveats worth recording — the package remains intentionally narrow in scope, so do not extend it for complex conditional logic; and if v5 support is the only reason we're pulling it in, evaluate whether a ~50-line in-house Blade component is the lower-risk long-term option before expanding our dependency surface.
How can I help you explore Laravel packages today?