| Install | |
|---|---|
composer require alizharb/laravel-modular-filament |
|
| Latest Version: | v1.0.0 |
| PHP: | ^8.2 |
Laravel Modular Filament is the official bridge for Laravel Modular. It enables automatic discovery, registration, and first-class Artisan support for Filament resources, pages, widgets, and clusters within your modular architecture.
Modules/*/app/Filament.make:filament-resource) with --module support.Install the package via Composer (requires alizharb/laravel-modular):
composer require alizharb/laravel-modular-filament
The service provider will be automatically registered. It will automatically hook into the laravel-modular registry.
Use the provided modular commands with the --module flag to generate Filament components directly into your modules.
Create a new Resource in a module.
php artisan make:filament-resource Post --module=Blog
Modules/Blog/app/Filament/Resources/Posts/PostResource.phpModules/Blog/resources/views/filament/resources/posts/post-resource/pages/... (if generated)Create a new standalone Page in a module.
php artisan make:filament-page Dashboard --module=Shop
Modules/Shop/app/Filament/Pages/Dashboard.phpModules/Shop/resources/views/filament/pages/dashboard.blade.phpCreate a new Widget in a module.
php artisan make:filament-widget StatsOverview --module=Analytics
Modules/Analytics/app/Filament/Widgets/StatsOverview.phpModules/Analytics/resources/views/filament/widgets/stats-overview.blade.phpCreate a new Cluster in a module to group resources and pages.
php artisan make:filament-cluster Settings --module=System
Modules/System/app/Filament/Clusters/Settings/SettingsCluster.phpMost Filament generation commands are supported with the --module flag:
make:filament-relation-managermake:filament-thememake:filament-tablemake:filament-formmake:filament-infolistThe bridge respects your existing modular.php paths and Filament's own configuration. No additional configuration is required.
vendor/bin/pest
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.
Made with ❤️ by Ali Harb