PHPackages                             digital-creative/expandable-table-row - 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. digital-creative/expandable-table-row

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

digital-creative/expandable-table-row
=====================================

Provides an easy way to append extra data to each row of your resource tables.

v0.2.0(2y ago)1819.0k↑124.4%3[4 issues](https://github.com/dcasia/expandable-table-row/issues)MITVuePHP &gt;=8.1

Since Oct 10Pushed 2y ago3 watchersCompare

[ Source](https://github.com/dcasia/expandable-table-row)[ Packagist](https://packagist.org/packages/digital-creative/expandable-table-row)[ GitHub Sponsors](https://github.com/milewski)[ RSS](/packages/digital-creative-expandable-table-row/feed)WikiDiscussions main Synced yesterday

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Expandable Table Row
====================

[](#expandable-table-row)

[![Latest Version on Packagist](https://camo.githubusercontent.com/eb9dca6f256b3ed78ba3f5b5104e7d1627136af1f44c0099c28f163668597ef5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6469676974616c2d63726561746976652f657870616e6461626c652d7461626c652d726f77)](https://packagist.org/packages/digital-creative/expandable-table-row)[![Total Downloads](https://camo.githubusercontent.com/045c7dc1f5fef9bcd91167c6e78d6d0a8362f3dabf6033af2800adf9da595d74/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6469676974616c2d63726561746976652f657870616e6461626c652d7461626c652d726f77)](https://packagist.org/packages/digital-creative/expandable-table-row)[![License](https://camo.githubusercontent.com/5e7df820d1568085d52cde2e87ff78fcab77f52dc46dd9fb9e999748c172997b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6469676974616c2d63726561746976652f657870616e6461626c652d7461626c652d726f77)](https://github.com/dcasia/expandable-table-row/blob/main/LICENSE)

  ![Expandable Table Row in Action](https://raw.githubusercontent.com/dcasia/expandable-table-row/main/screenshots/light.png)Provides an easy way to append extra data to each row of your resource tables.

Installation
============

[](#installation)

You can install the package via composer:

```
composer require digital-creative/expandable-table-row

```

Basic Usage
-----------

[](#basic-usage)

To use the new functionality, all you need to do is add the `->expandableRowData()` method to your field definition and return any class that extends Nova Field or an array of fields.

```
class UserResource extends Resource
{
    public function fields(NovaRequest $request): array
    {
        return [
            //...
            Text::make('First Name')->expandableRowData(function () {
                return [
                    Line::make(null)->displayUsing(fn () => 'Name')->asSubTitle(),
                    Text::make('Full Name', fn (User $user) => sprintf('%s %s',$user->first_name, $user->last_name))->copyable(),
                    Text::make('Email')->copyable(),
                ];
            }),

            Text::make('Last Name')->expandableRowData(function () {
                return [
                    Line::make(null)->displayUsing(fn () => 'Address')->asSubTitle(),
                    Text::make('Country'),
                    Text::make('Address', fn (User $user) => sprintf(
                        '%s, %s, %s - %s', $user->city, $user->state, $user->address, $user->zipcode
                    ))->copyable(),
                ];
            }),
            //...
        ];
    }
}
```

Settings
--------

[](#settings)

You can configure several options by using `->expandableRowOptions()`. Below, you'll find an explanation of each.

```
public function fields(NovaRequest $request): array
{
    return [
        Text::make('...')->expandableRowOptions([
            'span' => 2, // This makes the metadata take X much more columns.
            'expanded_by_default' => true, // This makes the table row start expanded by default.
            'preallocate_column_width' => true, // This will avoid the table column shifting when expanding / collapsing.
        ]),
    ];
}
```

⭐️ Show Your Support
--------------------

[](#️-show-your-support)

Please give a ⭐️ if this project helped you!

### Other Packages You Might Like

[](#other-packages-you-might-like)

- [Nova Dashboard](https://github.com/dcasia/nova-dashboard) - The missing dashboard for Laravel Nova!
- [Nova Welcome Card](https://github.com/dcasia/nova-welcome-card) - A configurable version of the `Help card` that comes with Nova.
- [Icon Action Toolbar](https://github.com/dcasia/icon-action-toolbar) - Replaces the default boring action menu with an inline row of icon-based actions.
- [Expandable Table Row](https://github.com/dcasia/expandable-table-row) - Provides an easy way to append extra data to each row of your resource tables.
- [Collapsible Resource Manager](https://github.com/dcasia/collapsible-resource-manager) - Provides an easy way to order and group your resources on the sidebar.
- [Resource Navigation Tab](https://github.com/dcasia/resource-navigation-tab) - Organize your resource fields into tabs.
- [Resource Navigation Link](https://github.com/dcasia/resource-navigation-link) - Create links to internal or external resources.
- [Nova Mega Filter](https://github.com/dcasia/nova-mega-filter) - Display all your filters in a card instead of a tiny dropdown!
- [Nova Pill Filter](https://github.com/dcasia/nova-pill-filter) - A Laravel Nova filter that renders into clickable pills.
- [Nova Slider Filter](https://github.com/dcasia/nova-slider-filter) - A Laravel Nova filter for picking range between a min/max value.
- [Nova Range Input Filter](https://github.com/dcasia/nova-range-input-filter) - A Laravel Nova range input filter.
- [Nova FilePond](https://github.com/dcasia/nova-filepond) - A Nova field for uploading File, Image and Video using Filepond.
- [Custom Relationship Field](https://github.com/dcasia/custom-relationship-field) - Emulate HasMany relationship without having a real relationship set between resources.
- [Column Toggler](https://github.com/dcasia/column-toggler) - A Laravel Nova package that allows you to hide/show columns in the index view.
- [Batch Edit Toolbar](https://github.com/dcasia/batch-edit-toolbar) - Allows you to update a single column of a resource all at once directly from the index page.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://raw.githubusercontent.com/dcasia/expandable-table-row/master/LICENSE) for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.7% 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 ~4 days

Total

4

Last Release

982d ago

### Community

Maintainers

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

---

Top Contributors

[![milewski](https://avatars.githubusercontent.com/u/2874967?v=4)](https://github.com/milewski "milewski (18 commits)")[![scramatte](https://avatars.githubusercontent.com/u/188766?v=4)](https://github.com/scramatte "scramatte (1 commits)")

---

Tags

expandablelaravelnova4tablelaraveltablenovanova4expandable

### Embed Badge

![Health badge](/badges/digital-creative-expandable-table-row/health.svg)

```
[![Health](https://phpackages.com/badges/digital-creative-expandable-table-row/health.svg)](https://phpackages.com/packages/digital-creative-expandable-table-row)
```

###  Alternatives

[optimistdigital/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2852.1M6](/packages/optimistdigital-nova-sortable)[outl1ne/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2862.1M9](/packages/outl1ne-nova-sortable)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[sietse85/nova-button

(Nova 4+) A Laravel Nova package for adding buttons to your resources.

37371.5k](/packages/sietse85-nova-button)[digital-creative/custom-relationship-field

Emulate HasMany relationship without having a real relationship set between resources

33268.5k](/packages/digital-creative-custom-relationship-field)[advoor/nova-editor-js

A Laravel Nova field bringing EditorJs magic to Nova.

92219.3k3](/packages/advoor-nova-editor-js)

PHPackages © 2026

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