New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

stepanenko3/nova-boolean-group-field

Nova BooleanGroup advanced field based on native Nova field
30,374 7
Install
composer require stepanenko3/nova-boolean-group-field
Latest Version:v1.0.3
PHP:>=8.0
Laravel:10 · 11
License:MIT
Last Updated:Feb 25, 2025
Links: GitHub  ·  Packagist
Maintainer: stepanenko3

Nova Boolean Group

Latest Version on Packagist Total Downloads License

screenshot of field

Description

Extended BooleanGroup Field for Laravel Nova

Features

  • Grouped by prefix
  • Support dotted options
  • Support multidimensional options
  • Toggle all checkboxes
  • Toggle group of checkboxes

Requirements

  • php: >=8.0
  • laravel/nova: ^4.0

Installation

# Install the package
composer require stepanenko3/nova-boolean-group-field

Usage

Add the use declaration to your resource and use the fields:

use Stepanenko3\NovaBooleanGroup\BooleanGroup;
...

BooleanGroup::make('Permissions', 'permissions'),

BooleanGroup::make('Layouts', 'layouts')->options([
    'value1' => 'Value1',
    'value2' => 'Value2',
    'value3.value1' => 'Value3.1',
    'value3.value2' => 'Value3.2',
    'value4.value1' => 'Value4.1',
    'value4.value2' => 'Value4.2',
    'value5' => [
        'value1' => 'Value5.1',
        'value2' => 'Value5.2',
        'value53' => [
            'value1' => 'Value5.3.1',
            'value2' => 'Value5.3.2',
        ],
    ],
]),

BooleanGroup::make('Permissions', 'permissions')
    ->hideFalseValues(),

BooleanGroup::make('Permissions', 'permissions')
    ->hideTrueValues(),

Screenshots

screenshot of field screenshot of field screenshot of field screenshot of field

Credits

Contributing

Thank you for considering contributing to this package! Please create a pull request with your contributions with detailed explanation of the changes you are proposing.

License

This package is open-sourced software licensed under the MIT license.

Related Packages

epartment/nova-dependency-container

A Laravel Nova field container allowing to depend on other fields values

4,703,233 378
eminiarts/nova-tabs

Laravel Nova - Tabs.

4,631,018 464
ebess/advanced-nova-media-library

Laravel Nova tools for managing the Spatie media library.

3,888,853 616
spatie/nova-tags-field

A tags field for Nova apps

2,356,168 301
kabbouchi/nova-impersonate

A Laravel Nova field allows you to authenticate as your users.

2,275,623 234

Version History

Version Released PHP Laravel License
v1.0.3 >=8.0 ^10.0|^11.0 MIT
v1.0.2 >=8.0 ^10.0 MIT
v1.0.1 >=8.0 MIT
1.0 >=8.0 MIT