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

Nova Toggle Laravel Package

almirhodzic/nova-toggle

almirhodzic/nova-toggle is a Laravel Nova field that adds a clean toggle switch for boolean attributes, letting you flip values directly from the resource index or detail view. Ideal for managing active/inactive or yes/no flags without leaving the resource list.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

  • Architecture fit: This is a small Laravel Nova 5 utility package that exposes a toggle endpoint for boolean/whitelisted attributes from Nova index, lens, or “With Trashed” views. It fits as an admin-panel convenience layer, not as core domain logic. The v1.3.1 release improves fit for resources using soft deletes by applying withTrashed() during lookup when the Nova resource supports soft deletes.
  • Integration feasibility: High. Release notes describe a drop-in upgrade via composer update almirhodzic/nova-toggle-5. No schema migration or config migration is called out. Behavior is explicitly unchanged for resources without soft deletes, and authorization plus toggleable-attribute whitelist checks continue to apply to trashed records.
  • Technical risk: Low for this patch. The main residual risk is not the code change itself but operational expectations around toggling soft-deleted records: teams should confirm that policies, whitelists, and audit expectations are correct for trashed rows. There is also normal third-party package risk around Nova/PHP/Laravel version compatibility and maintainer responsiveness.
  • Key questions: Which Nova, Laravel, and PHP versions are officially supported? Does soft-delete support rely on automatic Nova resource detection or explicit configuration? Are trashed-record toggles audited or logged by the host application? Do authorization policies receive the trashed model instance as expected? What test coverage exists for lenses, “With Trashed” views, and non-soft-delete resources?

Integration Approach

  • Stack fit: Best suited to Laravel applications running Nova 5 with boolean attributes that operators need to toggle quickly from resource lists or lenses. The fix specifically improves usability where Nova surfaces trashed rows, such as “With Trashed” views and lenses.
  • Migration path: Treat v1.3.1 as a patch upgrade. Run composer update almirhodzic/nova-toggle-5, then verify the toggle endpoint against both soft-deletable and non-soft-deletable Nova resources. No data migration is indicated.
  • Compatibility: The release notes state that behavior is unchanged for resources without soft deletes. For soft-deletable resources, the lookup now includes trashed records, while authorization and whitelist checks remain enforced. Teams with custom policies or custom toggleable-attribute lists should validate those paths explicitly.
  • Sequencing: Upgrade in a development environment first. Exercise toggles from normal index views, lens views, and “With Trashed” views. Confirm unauthorized users still cannot toggle trashed records and that non-whitelisted attributes remain blocked. Then promote through staging to production with normal release monitoring.

Operational Impact

  • Maintenance: Low. This is a narrow package with a small dependency surface. The patch reduces a specific operational defect rather than introducing new configuration or migration burden.
  • Support: Support impact is mainly dependency hygiene and Nova version alignment. The project should track package releases alongside Nova upgrades and confirm the maintainer continues to support Nova 5.
  • Scaling: Negligible for typical Nova admin usage. The change affects record lookup for toggle requests, not bulk processing or background workloads. Any performance effect should be limited to individual toggle operations on soft-deletable resources.
  • Failure modes: Before v1.3.1, toggling soft-deleted records returned a 404, making the endpoint unusable from trashed-row views. After the fix, the primary risk shifts to misconfigured authorization or whitelist expectations for trashed records. Other failure modes include Nova version drift and custom resource behavior that bypasses standard soft-delete detection.
  • Ramp-up: Low for Laravel/Nova developers. Administrators and support staff should be briefed that trashed records can now be toggled where the resource uses soft deletes, subject to existing authorization and whitelist controls.
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.
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
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums