PHPackages                             smart145/inline-boolean - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. smart145/inline-boolean

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

smart145/inline-boolean
=======================

A Laravel Nova boolean field that can be directly edited from the index or detail page of a resource.

v1.0.1(6y ago)0131.2k↑16.7%MITVuePHP &gt;=7.1.0

Since Jun 12Pushed 5y agoCompare

[ Source](https://github.com/smart145/inline-boolean)[ Packagist](https://packagist.org/packages/smart145/inline-boolean)[ Docs](https://github.com/smart145/inline-boolean)[ RSS](/packages/smart145-inline-boolean/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Laravel Nova: Inline Boolean
============================

[](#laravel-nova-inline-boolean)

[![Latest Stable Version](https://camo.githubusercontent.com/fec214d998ce09852fa12fd88cd3851d77d4bcb774c1fe7d8e90121c05d2e0db/68747470733a2f2f706f7365722e707567782e6f72672f6d61726b72617373616d6e692f696e6c696e652d626f6f6c65616e2f762f737461626c65)](https://packagist.org/packages/markrassamni/inline-boolean) [![Total Downloads](https://camo.githubusercontent.com/4df85cc365c71b9f337d384225d7571d794cb07358d13b6cf9d5389d11d97065/68747470733a2f2f706f7365722e707567782e6f72672f6d61726b72617373616d6e692f696e6c696e652d626f6f6c65616e2f646f776e6c6f616473)](https://packagist.org/packages/markrassamni/inline-boolean) [![License](https://camo.githubusercontent.com/9c2bba64559e50d2a6de2d0fd6f14eb990accff646a85b9b96a297d2e5289a62/68747470733a2f2f706f7365722e707567782e6f72672f6d61726b72617373616d6e692f696e6c696e652d626f6f6c65616e2f6c6963656e7365)](https://packagist.org/packages/markrassamni/inline-boolean)

Adds the ability to edit a boolean field directly from the index or detail page of a resource.

[![](https://raw.githubusercontent.com/markrassamni/inline-boolean/master/InlineBooleanIndex.png)](https://raw.githubusercontent.com/markrassamni/inline-boolean/master/InlineBooleanIndex.png)

[![](https://raw.githubusercontent.com/markrassamni/inline-boolean/master/InlineBooleanDetail.png)](https://raw.githubusercontent.com/markrassamni/inline-boolean/master/InlineBooleanDetail.png)

Prerequisites
-------------

[](#prerequisites)

- [Laravel](https://laravel.com/)
- [Laravel Nova](https://nova.laravel.com/)

Installation
------------

[](#installation)

```
$ composer require markrassamni/inline-boolean

```

Usage
-----

[](#usage)

Use the `MarkRassamni\InlineBoolean\InlineBoolean` field in your Nova resource:

```
use MarkRassamni\InlineBoolean\InlineBoolean;

class MyResource extends Resource
{
    public function fields(Request $request)
    {
        return [
            InlineBoolean::make('Enabled')
                ->inlineOnIndex()  // Use inline field on the index page
                ->inlineOnDetail()  // Use inline field on the detail page
                ->enableMessage('Boolean has been enabled.')  // Toast message when enabling boolean
                ->disableMessage('Boolean has been disabled.')  // Toast message when disabling boolean
                ->trueText('Enabled')  // Change the text describing true boolean values
                ->falseText('Disabled')  // Change the text describing false boolean values
                ->showTextOnIndex()  // Show true/false text beside the checkbox on the index page
        ];
    }
}
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~303 days

Total

2

Last Release

2229d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bbbc49241b2231fd86bed0a5a8d8e5dd8b3209b542fc8b0ca965b58b8034d554?d=identicon)[eliurkis](/maintainers/eliurkis)

---

Top Contributors

[![markrassamni](https://avatars.githubusercontent.com/u/17393438?v=4)](https://github.com/markrassamni "markrassamni (8 commits)")[![timmfroehlich](https://avatars.githubusercontent.com/u/3512183?v=4)](https://github.com/timmfroehlich "timmfroehlich (1 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/smart145-inline-boolean/health.svg)

```
[![Health](https://phpackages.com/badges/smart145-inline-boolean/health.svg)](https://phpackages.com/packages/smart145-inline-boolean)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)[genealabs/laravel-overridable-model

Provide a uniform method of allowing models to be overridden in Laravel.

92398.0k2](/packages/genealabs-laravel-overridable-model)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17165.2k](/packages/murdercode-nova4-tinymce-editor)[yieldstudio/nova-google-autocomplete

A Laravel Nova Google autocomplete field.

12218.4k](/packages/yieldstudio-nova-google-autocomplete)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
