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.
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.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.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.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?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.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.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.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.dependsOn() callbacks should remain lightweight and avoid expensive queries or side effects in field callbacks.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.InlineToggle versus standard Nova Boolean fields, how dependsOn() should model workflow state, and where readonly is appropriate for locked or audited records.How can I help you explore Laravel packages today?