Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Toggle Field For Backpack Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Backpack admin upgrade planning (v4 → v5): This release is the compatibility gate. If your admin panels use a toggle/boolean field and you plan to move to Backpack v5, 2.0.1 is the version that unblocks that migration. Timing your Backpack upgrade is the primary decision this release informs.
  • Build vs. buy for trivial UI primitives: A boolean toggle field is a ~50-line Blade component. Owning it in-house is cheap and removes a third-party dependency from your critical admin path; consuming this package is cheaper still if it works. The decision hinges on maintenance signals, not features.
  • Dependency surface / supply-chain policy: Adding a single-purpose micro-package to 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.
  • Roadmap input — admin UX consistency: If your product standardizes on Backpack for internal tooling, adopting a shared field type keeps toggle rendering consistent across panels and reduces per-panel custom Blade code.
  • Not a lever for: customer-facing features, pricing/packaging, or performance work. Scope this as internal tooling hygiene, not product capability.

When to Consider This Package

Consider it when all of the following hold:

  • You are on Backpack for Laravel v5 (this release exists specifically to add v5 support; 2.0.0 and earlier target v4).
  • You need a boolean/toggle input in a CRUD form and want it to render as a switch rather than a plain checkbox, without writing custom Blade + JS yourself.
  • You are comfortable with a small, low-activity, single-maintainer-oriented package in your admin dependency graph — acceptable for an internal backoffice, generally not for a customer-facing critical path.
  • You pin versions in composer.lock and can absorb a breaking major (2.x) deliberately during a planned Backpack upgrade.

Look elsewhere or build in-house when:

  • You are on Backpack v4 and not upgrading — stay on 2.0.0; upgrading buys you nothing but churn.
  • Your toggle needs are non-trivial (dependent fields, conditional visibility, multi-state enums) — a micro field package will not cover it, and a bespoke Blade component or a broader admin-field library is the better fit.
  • You require active maintenance, security SLAs, or a documented release cadence — the 2.0.1 notes show three first-time contributors and housekeeping changes, which is normal for a micro-package but not evidence of a support commitment.
  • You enforce strict dependency minimization — the functionality is small enough to vendor in a few dozen lines and eliminate the dependency entirely.

How to Pitch It (Stakeholders)

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel