PHPackages                             diezg/collapsible - 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. diezg/collapsible

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

diezg/collapsible
=================

A Laravel Nova field.

0.0.2(4y ago)621.6k↓51.5%MITPHPPHP &gt;=7.1.0

Since Aug 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/diezg/collapsible-field)[ Packagist](https://packagist.org/packages/diezg/collapsible)[ RSS](/packages/diezg-collapsible/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Laravel Nova Collapsible Field
==============================

[](#laravel-nova-collapsible-field)

[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

Description
-----------

[](#description)

This field give the ability to hide/show relationships tables in a resource.

Screenshots
-----------

[](#screenshots)

[![Animation](collapsible.gif)](collapsible.gif)

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

[](#installation)

This package can be installed through Composer.

```
composer require diezg/collapsible
```

Example Usage
-------------

[](#example-usage)

Fields supported: HasMany*Collapsible*, HasManyThrough*Collapsible*, MorphMany*Collapsible*, MorphToMany*Collapsible*.

```
use Diezg\Collapsible\HasManyCollapsible;

class User extends Resource
{
    /**
     * Get the fields displayed by the resource.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function fields(Request $request)
    {
        return [
            ID::make()->sortable(),

            Text::make('Name'),

            HasManyCollapsible::make(__('Products'), 'products', Product::class)
                ->buttonText('Show custom text', 'Hide custom text'), // Optional
        ];
    }
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~45 days

Total

2

Last Release

1676d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/28656ce562ea9a1d5f112f443c412a1c195d954020deb1a507f51c00f594098d?d=identicon)[gabriel109](/maintainers/gabriel109)

---

Top Contributors

[![diezg](https://avatars.githubusercontent.com/u/14855802?v=4)](https://github.com/diezg "diezg (4 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/diezg-collapsible/health.svg)

```
[![Health](https://phpackages.com/badges/diezg-collapsible/health.svg)](https://phpackages.com/packages/diezg-collapsible)
```

###  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)
