- What is dario-binalogue/inline-boolean used for?
- It is a Laravel Nova field that provides an inline boolean toggle for table rows. Users can flip true/false values directly from a table without opening an edit page or taking extra clicks. The package is described as lightweight and built for quick, minimal-setup state updates.
- How do I install dario-binalogue/inline-boolean in Laravel?
- Install the package with Composer using composer require dario-binalogue/inline-boolean. Because it is a Nova field, your Laravel application should already have Laravel Nova installed and configured. After installation, add the field to your Nova resource as described in the package README.
- Does dario-binalogue/inline-boolean work with Laravel Nova?
- Yes, the repository description identifies it as a Laravel Nova field. It is designed to let users toggle boolean values directly from a Nova table row. Check the README for the exact field class and usage example for your Nova resource.
- Can I use inline-boolean with Filament or Livewire?
- The package blurb says it is quick to wire into Filament or Livewire resources, but the repository description identifies it as a Laravel Nova field. Confirm Filament or Livewire compatibility in the README before using it outside Nova. If you need a Filament table toggle, verify that the field supports Filament's table API.
- How do I add an inline boolean toggle to a Nova resource?
- Add the inline-boolean field to the fields method of your Nova resource, following the package README for the correct class name and options. It is intended for index/table views so users can flip values without navigating to an edit page. Review the README for any required configuration or field-specific methods.
- Does inline-boolean require an edit page or extra clicks?
- No, the package is specifically designed to avoid an edit page for boolean changes. Users flip true/false values straight from a table row, which reduces clicks for simple state updates. This makes it useful for quick administrative toggles in Nova resources.
- Is inline-boolean lightweight and easy to set up?
- The package is described as lightweight and built for instant, minimal-setup state updates. Setup should mainly involve installing it with Composer and adding the field to a Nova resource. Check the README for the exact configuration steps and any Nova version requirements.
- What Laravel versions does inline-boolean support?
- The provided context does not list specific Laravel or Nova version constraints. Check the package composer.json and README in the repository for supported Laravel and Nova versions before installing. As a Nova field, it will generally need to match your installed Nova version.
- How do I test an inline boolean toggle in Laravel?
- You can test the toggle through your Nova resource by flipping a boolean value and asserting that the underlying model value changes. Use Laravel's testing tools and any Nova testing helpers available in your application. Check the package README for field-specific assertions or setup requirements.
- Are there alternatives to inline-boolean for Laravel boolean toggles?
- Alternatives include Nova's built-in Boolean field, custom Nova boolean fields with inline update behavior, or Filament and Livewire table toggle columns if you are not using Nova. Evaluate whether you need a Nova-specific field or a more general Livewire component. The inline-boolean package is aimed at minimal-setup inline updates.