PHPackages                             microweber-deps/filament-modules - 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. [Framework](/categories/framework)
4. /
5. microweber-deps/filament-modules

ActiveLibrary[Framework](/categories/framework)

microweber-deps/filament-modules
================================

Organize your Filament Code into modules using nwidart/laravel-modules

1.0(9mo ago)093MITPHP

Since Jul 19Pushed 9mo agoCompare

[ Source](https://github.com/microweber-deps/filament-modules)[ Packagist](https://packagist.org/packages/microweber-deps/filament-modules)[ Docs](https://github.com/savannabits/filament-modules)[ GitHub Sponsors](https://github.com/coolsam)[ RSS](/packages/microweber-deps-filament-modules/feed)WikiDiscussions main Synced 1mo ago

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

Filament Modules v4.x
=====================

[](#filament-modules-v4x)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c1d22181deb25be90061785091ca40c0373211f899c561d9c2b409826aec6bb9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6f6c73616d2f6d6f64756c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/coolsam/modules)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5a5ee36750227e740b128b5544347664511c6dda8291de2511574494de11b9cd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736176616e6e61626974732f66696c616d656e742d6d6f64756c65732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/savannabits/filament-modules/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/90f00865efe3ef3b8ec668cc74b46884f7db4609b7bda4ced0cc6490d5fb1117/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736176616e6e61626974732f66696c616d656e742d6d6f64756c65732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/savannabits/filament-modules/actions?query=workflow%3Afix-php-code-style+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/a95ba58d8af9d01142b0a4901c0c74f2cae025aa9532f8abe67c44f7d1dd3788/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6f6c73616d2f6d6f64756c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/coolsam/modules)

> **NOTE:** This documentation is for **version 4.x** of the package, which only supports **Laravel 11** and **nwidart/laravel-modules ^11**. If you are using Laravel 10, please refer to the [3.x documentation](https://github.com/savannabits/filament-modules/tree/3.x).

[![image](https://private-user-images.githubusercontent.com/5610289/322284347-ba191f1d-b5ee-4eb9-9db7-d42a19cc8d38.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUxODU3MDksIm5iZiI6MTc3NTE4NTQwOSwicGF0aCI6Ii81NjEwMjg5LzMyMjI4NDM0Ny1iYTE5MWYxZC1iNWVlLTRlYjktOWRiNy1kNDJhMTljYzhkMzgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDQwMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA0MDNUMDMwMzI5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjkzMjRiMjEwZmNiODJhMDdjMTg1YmE1ZDYwNWQ1Y2Q5MWM5OTljMzQzMTQzODJjMzIyOWVkMGRlYTk2YTRhNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.qy3cyYL2n_9RHN6Py7rJOFr0wuXtCpTjIEx4CdEv7oY)](https://private-user-images.githubusercontent.com/5610289/322284347-ba191f1d-b5ee-4eb9-9db7-d42a19cc8d38.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUxODU3MDksIm5iZiI6MTc3NTE4NTQwOSwicGF0aCI6Ii81NjEwMjg5LzMyMjI4NDM0Ny1iYTE5MWYxZC1iNWVlLTRlYjktOWRiNy1kNDJhMTljYzhkMzgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDQwMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA0MDNUMDMwMzI5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjkzMjRiMjEwZmNiODJhMDdjMTg1YmE1ZDYwNWQ1Y2Q5MWM5OTljMzQzMTQzODJjMzIyOWVkMGRlYTk2YTRhNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.qy3cyYL2n_9RHN6Py7rJOFr0wuXtCpTjIEx4CdEv7oY)

This package brings the power of modules to Laravel Filament. It allows you to organize your filament code into fully autonomous modules that can be easily shared and reused across multiple projects. With this package, you can turn each of your modules into a fully functional Filament Plugin with its own resources, pages, widgets, components and more. What's more, you don't even need to register each of these plugins in your main Filament Panel. All you need to do is register the `ModulesPlugin` in your panel, and it will take care of the rest for you.

This package is simple a wrapper of [nwidart/laravel-modules](https://docs.laravelmodules.com) package to make it work with Laravel Filament.

Features
--------

[](#features)

- A command to prepare your module for Filament
- A command to create a Filament Cluster in your module
- A command to create additional Filament Plugins in your module
- A command to create a new Filament resource in your module
- A command to create a new Filament page in your module
- A command to create a new Filament widget in your module
- Organize your admin panel into Cluster, one for each supported module.

Requirements
------------

[](#requirements)

v4.x of this package requires the following dependencies:

- Laravel 11.x or higher
- Filament 3.x or higher
- PHP 8.2 or higher
- nwidart/laravel-modules 11.x

If you are using Laravel 10 please use [version 3.x](https://github.com/savannabits/filament-modules/tree/3.x) instead.

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

[](#installation)

You can install the package via composer:

```
composer require coolsam/modules:^4
```

This will automatically install `nwidart/laravel-modules: ^11` as well. Make sure you go through the [documentation](https://laravelmodules.com/docs/v11/introduction) to understand how to use the package and to configure it properly before proceeding.

You can publish the config file with:

```
php artisan vendor:publish --tag="modules-config"
```

Alternatively, just run the installation command and follow the prompts:

```
php artisan module:filament:install
```

### Configuration

[](#configuration)

After publishing the config file, you can configure the package to your liking. The configuration file is located at `config/filament-modules.php`. The following can be adjusted in the configuration file:

- **auto-register-plugins**: If set to true, the package will automatically register all the plugins in your modules. Otherwise, you will need to register each plugin manually in your Filament Panel.
- **clusters.enabled**: If set to true, a cluster will be created in each module during the `module:filament:install`command and all filament files for that module may reside inside that cluster. Otherwise, filament files will reside in Filament/Resources, Filament/Pages, Filament/Widgets, etc.
- **clusters.use-top-navigation**: If set to true, the top navigation will be used to navigate between clusters while the actual links will be loaded as a side sub-navigation. In my opinion, this improves UX. Otherwise, the package will honor the configuration that you have in your panel.

Usage
-----

[](#usage)

### Register the plugin

[](#register-the-plugin)

The package comes with a `ModulesPlugin` that you can register in your Filament Panel. This plugin will automatically load all the modules in your application and register them as Filament plugins. In order to achieve this, you need to register the `ModulesPlugin` in your panel of choice (e.g. Admin Panel) like so:

```
// e.g. in App\Providers\Filament\AdminPanelProvider.php

use Coolsam\Modules\ModulesPlugin;
public function panel(Panel $panel): Panel
{
    return $panel
        ...
        ->plugin(ModulesPlugin::make());
}
```

That's it! now you are ready to start creating some filament code in your module of choice!

### Installing Filament in a module

[](#installing-filament-in-a-module)

If you don't have a module already, you can generate one using the `module:make` command like so:

```
php artisan module:make MyModule
```

Next, run the `module:filament:install` command to generate the necessary Filament files and directories in your module:

```
php artisan module:filament:install MyModule
```

This will guide you interactively on whether you want to organize your code in clusters, and whether you would like to create a default cluster. At the end of this installation, you will have the following structure in your module:

- Modules
    - MyModule
        - app
            - Filament
                - Clusters
                    - MyModule
                        - Pages
                        - Resources
                        - Widgets
                    - **MyModule.php**
                - Pages
                - Resources
                - Widgets
                - **MyModulePlugin.php**

As you can see, there are two main files generated: The plugin class and optionally the cluster class. After generation, you are free to make any modifications to these classes as you may see fit.

The **plugin** will be loaded automatically unless the configuration is set otherwise. As a result, it will also load all its clusters automatically.

Your module is now ready to be used in your Filament Panel. Use the following commands during development to generate new resources, pages, widgets and clusters in your module:

### Creating a new resource

[](#creating-a-new-resource)

```
php artisan module:make:filament-resource
```

Follow the interactive prompts to create a new resource in your module.

### Creating a new page

[](#creating-a-new-page)

```
php artisan module:make:filament-page
```

Follow the interactive prompts to create a new page in your module.

\###Creating a new widget

```
php artisan module:make:filament-widget
```

Follow the interactive prompts to create a new widget in your module.

### Creating a new cluster

[](#creating-a-new-cluster)

```
php artisan module:make:filament-cluster
```

Follow the interactive prompts to create a new cluster in your module.

### Creating a new plugin

[](#creating-a-new-plugin)

```
php artisan module:make:filament-plugin
```

Follow the interactive prompts to create a new plugin in your module.

### Create a new Filament Theme

[](#create-a-new-filament-theme)

```
php artisan module:make:filament-theme
```

### Follow the instructions to protect your resources and pages if your module is not active.

[](#follow-the-instructions-to-protect-your-resources-and-pages-if-your-module-is-not-active)

```
use Coolsam\Modules\Resource;
```

use the above resource class instead of `use Filament/Resources/Resource;` into your resource class file to protect your resources.

```
use Coolsam\Modules\Page;
```

use the above page class instead of `use Filament/Pages/Page;` into your page class file to protect your pages.

```
use Coolsam\Modules\TableWidget;
```

use the above page class instead of `use Filament/Pages/TableWidget;` into your widget class file to protect your TableWidget.

```
use Coolsam\Modules\ChartWidget;
```

use the above page class instead of `use Filament/Pages/ChartWidget;` into your widget class file to protect your ChartWidget.

```
use Coolsam\Modules\StatsOverviewWidget;
```

use the above page class instead of `use Filament/Pages/StatsOverviewWidget;` into your widget class file to protect your StatsOverviewWidget.

```
use CanAccessTrait;
```

use the above trait directly into your resource and page class file to protect your resources and pages.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Sam Maosa](https://github.com/coolsam726)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance59

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.1% 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

Unknown

Total

1

Last Release

294d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4dc06e05e127ad3192ef9797ace808069687140538add8e6dbad34ce50bcd1f8?d=identicon)[boksiora](/maintainers/boksiora)

---

Top Contributors

[![coolsam726](https://avatars.githubusercontent.com/u/5610289?v=4)](https://github.com/coolsam726 "coolsam726 (216 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (12 commits)")[![aisuvro](https://avatars.githubusercontent.com/u/2842856?v=4)](https://github.com/aisuvro "aisuvro (6 commits)")[![askippers](https://avatars.githubusercontent.com/u/994820?v=4)](https://github.com/askippers "askippers (2 commits)")[![alissn](https://avatars.githubusercontent.com/u/26966142?v=4)](https://github.com/alissn "alissn (1 commits)")[![husam-tariq](https://avatars.githubusercontent.com/u/16601695?v=4)](https://github.com/husam-tariq "husam-tariq (1 commits)")[![jasonencode](https://avatars.githubusercontent.com/u/2210843?v=4)](https://github.com/jasonencode "jasonencode (1 commits)")[![marco76tv](https://avatars.githubusercontent.com/u/1944941?v=4)](https://github.com/marco76tv "marco76tv (1 commits)")[![peter-mw](https://avatars.githubusercontent.com/u/5698247?v=4)](https://github.com/peter-mw "peter-mw (1 commits)")[![Saifallak](https://avatars.githubusercontent.com/u/6053156?v=4)](https://github.com/Saifallak "Saifallak (1 commits)")[![dedanirungu](https://avatars.githubusercontent.com/u/1658098?v=4)](https://github.com/dedanirungu "dedanirungu (1 commits)")[![vellea](https://avatars.githubusercontent.com/u/166348568?v=4)](https://github.com/vellea "vellea (1 commits)")

---

Tags

laravelfilamentcoolsamFilamentModules

### Embed Badge

![Health badge](/badges/microweber-deps-filament-modules/health.svg)

```
[![Health](https://phpackages.com/badges/microweber-deps-filament-modules/health.svg)](https://phpackages.com/packages/microweber-deps-filament-modules)
```

###  Alternatives

[coolsam/modules

Organize your Filament Code into modules using nwidart/laravel-modules

20195.1k4](/packages/coolsam-modules)[savannabits/filament-modules

Organize your Filament Code into modules using nwidart/laravel-modules

2014.3k](/packages/savannabits-filament-modules)[awcodes/filament-addons

A set of components / fields to extend Filament Admin.

3013.1k2](/packages/awcodes-filament-addons)[blendbyte/filament-title-with-slug

TitleWithSlugInput - Easy Permalink Slugs for the FilamentPHP Form Builder (PHP / Laravel / Livewire)

1322.4k3](/packages/blendbyte-filament-title-with-slug)

PHPackages © 2026

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