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

Laravel Nova Inline Toggle Laravel Package

wamesk/laravel-nova-inline-toggle

Laravel Nova inline toggle field: flip boolean values straight from index and detail views without opening an edit form. A drop-in switch for any boolean column with configurable labels, colors, and optional confirmation—making admin workflows faster. Works with Nova 4 and 5.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

  • Architecture fit: This package is a Laravel Nova custom field (InlineToggle) that enables inline boolean toggling on Nova resources. The v1.1.0 release strengthens fit for admin-heavy Laravel applications by adding Nova-native dependsOn() reactivity and readonly() support on index/detail views. It remains a presentation/UI-layer package rather than a core domain dependency.
  • Integration feasibility: Additive release with low apparent integration friction: dependsOn() follows Nova’s field dependency model, and readonly support reduces accidental mutations in index/detail contexts. Externalizing laravel-nova in webpack is a packaging/build improvement and should not require application-level changes for normal consumers, assuming distributed assets are built correctly.
  • Technical risk: Primary risk is Nova version compatibility and callback signature expectations for dependsOn() (InlineToggle, NovaRequest, FormData). Readonly behavior must be validated as UI-level enforcement only; server-side authorization and validation remain required. Since this is a minor release, breaking changes are not indicated, but the webpack externalization should be smoke-tested in the host app’s asset pipeline.
  • Key questions: Which Nova, Laravel, and PHP versions are officially supported? Are automated tests included for dependsOn() and readonly index/detail behavior? Does readonly prevent UI toggling only, or is there server-side enforcement? Are compiled assets shipped so consumers do not need to rebuild the package? What is the upgrade path from prior 1.x versions?

Integration Approach

  • Stack fit: Suitable for Laravel applications using Nova to manage boolean flags such as active status, feature enablement, publication state, or approval flags. The new dependsOn() support fits workflows where toggle availability depends on another field, such as hiding the toggle when status is archived. Readonly support fits audit, locked-record, and role-restricted admin scenarios.
  • Migration path: Treat v1.1.0 as an additive minor upgrade. Update via Composer, verify published assets if applicable, and smoke-test existing InlineToggle fields. For teams not yet using the package, introduce it first in a low-risk Nova resource and compare behavior against existing Boolean/toggle fields before broader adoption.
  • Compatibility: Confirm Nova version compatibility before rollout. Validate that dependsOn() callbacks receive the expected request/form data objects and that readonly() behaves consistently on index and detail views. The webpack laravel-nova externalization is likely transparent to consumers but should be checked in environments that compile or republish package assets.
  • Sequencing: 1) Confirm supported Nova/Laravel/PHP matrix; 2) upgrade in staging; 3) test existing toggle fields for regressions; 4) add dependsOn() to one workflow-heavy resource; 5) apply readonly() to one locked/audit-sensitive resource; 6) verify authorization still blocks unauthorized updates server-side; 7) roll out resource by resource.

Operational Impact

  • Maintenance: Low ongoing application maintenance if the package tracks Nova releases. The main maintenance burden is keeping Nova, Laravel, PHP, and package versions aligned and revalidating custom field behavior after Nova upgrades.
  • Support: Support needs are mainly Nova-specific: asset publishing, field registration, callback behavior, and readonly expectations. Document that readonly is not a substitute for policies, validation, or server-side authorization.
  • Scaling: The package is UI-oriented and should have negligible runtime scaling impact compared with Nova itself. Heavy use of dependsOn() callbacks should remain lightweight and avoid expensive queries or side effects in field callbacks.
  • Failure modes: Potential failures include Nova version mismatch, missing or stale compiled assets after webpack changes, dependsOn() callbacks not firing as expected, readonly toggles still being mutable through direct requests if authorization is weak, and inconsistent behavior between index and detail views. Mitigate with staging tests, policy enforcement, and explicit regression checks for existing toggles.
  • Ramp-up: Developer ramp-up is low for teams already familiar with Nova fields. TPM/team documentation should clarify when to use InlineToggle versus standard Nova Boolean fields, how dependsOn() should model workflow state, and where readonly is appropriate for locked or audited records.
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.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels