markrassamni/inline-boolean
A Laravel Nova field for toggling boolean values directly from resource index and detail views. It provides a compact inline switch, customizable on/off labels, and quick updates without opening a separate edit form. Useful for publishing, enabling, or approving records in one click.
Verdict (TPM read): low opportunity (1.86) is correct — do not adopt as a runtime dependency; treat it as a ~200-line reference design.
fields() method and ships a Vue IndexField/DetailField component that renders an inline toggle and calls Nova's update endpoint. Architecturally it is thin and clean — presentation-layer only, no schema changes, no service layer, no data model of its own. That is also its limit: its entire value is glue code against Nova internals, which is exactly the layer most exposed to framework churn.laravel/nova dependency. Outside a Nova stack it is dead weight; inside a modern Nova stack it almost certainly will not resolve, because the release history stops in June 2019 (Nova 2.x / Vue 2 tooling), while Nova 4+ moved to Vue 3 and Inertia. Expect a version conflict or a blank/broken index column rather than a clean failure.update policy and field-level visibility rules?) and on concurrency (does it send an absolute target value or a blind toggle — the latter causes last-write-wins flip-flopping when two admins click). Vue 2 asset tooling is end-of-life and a supply-chain consideration on its own.composer require. Fork or, better, reimplement: copy the field class pattern into app/Nova/Fields/InlineBoolean.php, rewrite the front-end as a Nova 4/5-compatible component (or Filament's ToggleColumn, which is a native one-liner today), and wire it through Nova's existing update route so policies and validation apply unchanged.How can I help you explore Laravel packages today?