PHPackages                             adultdate/resized-colufilament-resized-columnmn - 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. adultdate/resized-colufilament-resized-columnmn

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

adultdate/resized-colufilament-resized-columnmn
===============================================

Resizeable column for filament

v1.1.0(9mo ago)00MITPHP

Since May 17Pushed 4mo agoCompare

[ Source](https://github.com/adultdate/filament-resized-column)[ Packagist](https://packagist.org/packages/adultdate/resized-colufilament-resized-columnmn)[ RSS](/packages/adultdate-resized-colufilament-resized-columnmn/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Resizable Columns
=================

[](#resizable-columns)

The **Resizable Columns** plugin allows you to resize table columns in Filament with persistent width settings. This package provides a seamless way to customize table layouts by letting users adjust column widths according to their preferences.

[![Resized Column](https://raw.githubusercontent.com/AsmitNepali/filament-resized-column/refs/heads/main/images/cover.jpg)](https://raw.githubusercontent.com/AsmitNepali/filament-resized-column/refs/heads/main/images/cover.jpg)

Features
--------

[](#features)

- Drag-to-resize column functionality
- Persistent column width settings
- Per-user width preferences
- Session and database storage options
- Easy integration with existing Filament tables
- Customizable storage mechanisms

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

[](#installation)

You can install the package via composer:

```
composer require adultdate/filament-resized-column
```

Registering the Plugin
----------------------

[](#registering-the-plugin)

Add the plugin to your Filament panel configuration in `app/Providers/Filament/AdminPanelProvider.php`:

```
use Asmit\ResizedColumn\ResizedColumnPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ... other configuration
        ->plugins([
            // ... other plugins
            ResizedColumnPlugin::make()
                ->preserveOnDB() // Enable database storage (optional)
        ]);
}
```

Publishing filament assets
--------------------------

[](#publishing-filament-assets)

```
php artisan filament:assets
```

Publishing Migrations
---------------------

[](#publishing-migrations)

```
# Publish migrations
php artisan vendor:publish --provider="Asmit\ResizedColumn\ResizedColumnServiceProvider" --tag=filament-resized-column-migrations

# Run migrations
php artisan migrate
```

Usage
-----

[](#usage)

To use the Resized Column functionality, simply include the `HasResizableColumn` trait in your Filament List Page or your custom page class. This will automatically enable the resizable column feature for all tables in that resource.

```
use Asmit\ResizedColumn\HasResizableColumn;

class ListUsers extends ListRecords
{
    use HasResizableColumn;

    protected static string $resource = UserResource::class;

    // Your existing table definition...
}
```

Storage Configuration
---------------------

[](#storage-configuration)

The package provides two storage mechanisms:

1. **Session Storage** (Enabled by default)

    - Stores column widths in the user's session
    - No database required
    - Storage is browser/device specific
2. **Database Storage** (Optional)

    - Stores column widths in the database
    - Requires migration to create the `table_settings` table
    - Works across browsers/devices for the same user

You can enable or disable database storage in your panel configuration:

```
ResizedColumnPlugin::make()
    ->preserveOnDB(true) // Enable database storage
```

Configuration Options
---------------------

[](#configuration-options)

You can override any of the following methods in your class to customize behavior:

MethodDescription`persistColumnWidthsToDatabase()`Customize how column widths are saved to database`persistColumnWidthsToSession()`Customize how column widths are saved to session`loadColumnWidthsFromDatabase()`Customize how column widths are loaded from database`loadColumnWidthsFromSession()`Customize how column widths are loaded from session`getUserId()`Customize how user identification is handledExample: Custom Database Storage
--------------------------------

[](#example-custom-database-storage)

```
use Asmit\ResizedColumn\HasResizableColumn;

class ListUsers extends ListRecords
{
    use HasResizableColumn;

    protected function persistColumnWidthsToDatabase(): void
    {
        // Your custom database save logic here
        YourCustomModel::updateOrCreate(
            [
                'user_id' => $this->getUserId(),
                'resource' => $this->getResourceModelFullPath(), // e.g., 'App\Models\User'
            ],
            ['settings' => $this->columnWidths]
        );
    }
}
```

Troubleshooting
---------------

[](#troubleshooting)

### CSS Styles Not Loading

[](#css-styles-not-loading)

If the resize handles are not displaying correctly:

1. Make sure you have published the Filament assets:

    ```
    php artisan filament:assets
    ```
2. Clear your browser cache or try a hard refresh (Ctrl+F5)

Credits
-------

[](#credits)

- [Asmit Nepal](https://github.com/AsmitNepali)
- [Kishan Sunar](https://github.com/Kishan-Sunar)

### Security

[](#security)

If you discover a security vulnerability within this package, please send an e-mail to . All security vulnerabilities will be promptly addressed.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### 📄 License

[](#-license)

The MIT License (MIT). Please see [License File](LICENSE.txt) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance67

Regular maintenance activity

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~44 days

Total

3

Last Release

273d ago

### Community

Maintainers

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

---

Top Contributors

[![AsmitNepali](https://avatars.githubusercontent.com/u/33512152?v=4)](https://github.com/AsmitNepali "AsmitNepali (24 commits)")[![adultdate](https://avatars.githubusercontent.com/u/10224381?v=4)](https://github.com/adultdate "adultdate (4 commits)")[![mansoorkhan96](https://avatars.githubusercontent.com/u/51432274?v=4)](https://github.com/mansoorkhan96 "mansoorkhan96 (2 commits)")

### Embed Badge

![Health badge](/badges/adultdate-resized-colufilament-resized-columnmn/health.svg)

```
[![Health](https://phpackages.com/badges/adultdate-resized-colufilament-resized-columnmn/health.svg)](https://phpackages.com/packages/adultdate-resized-colufilament-resized-columnmn)
```

###  Alternatives

[kirschbaum-development/commentions

A package to allow you to create comments, tag users and more

12369.2k](/packages/kirschbaum-development-commentions)[pelmered/filament-money-field

94162.4k1](/packages/pelmered-filament-money-field)[asmit/resized-column

Resizeable column for filament

4857.4k1](/packages/asmit-resized-column)[josespinal/filament-record-navigation

Record navigation from views

3142.0k2](/packages/josespinal-filament-record-navigation)[asmit/filament-mention

A Laravel Filament package for implementing a customizable mention editor with support for tagging users or entities.

4416.2k](/packages/asmit-filament-mention)[monzer/filament-workflows

Automation made easy!

646.3k](/packages/monzer-filament-workflows)

PHPackages © 2026

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