Download the PHP package alizharb/laravel-modular-filament without Composer
On this page you can find all versions of the php package alizharb/laravel-modular-filament. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alizharb/laravel-modular-filament
More information about alizharb/laravel-modular-filament
Files in alizharb/laravel-modular-filament
Package laravel-modular-filament
Short Description The official Filament v5 bridge for Laravel Modular offering automatic discovery and modular Artisan commands.
License MIT
Informations about the package laravel-modular-filament
Laravel Modular Filament ๐
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.
โจ Features
- ๐ Automatic Discovery: Automatically scans and registers Filament Resources, Pages, Widgets, and Clusters in
Modules/*/app/Filament. - ๐๏ธ Modular Artisan Commands: Enhanced Filament commands (e.g.,
make:filament-resource) with--modulesupport. - ๐จ Cluster Support: Full support for creating and discovering Filament Clusters within modules.
- ๐ Native Stubs: Uses Filament's native stubs for consistent code generation without version drift.
- โ Strictly Typed: Fully compatible with PHPStan level 5 (and scalable).
๐ Installation
Install the package via Composer (requires alizharb/laravel-modular):
The service provider will be automatically registered. It will automatically hook into the laravel-modular registry.
๐ Usage
Generating Modular Components
Use the provided modular commands with the --module flag to generate Filament components directly into your modules.
1. Resources
Create a new Resource in a module.
- Creates:
Modules/Blog/app/Filament/Resources/Posts/PostResource.php - View:
Modules/Blog/resources/views/filament/resources/posts/post-resource/pages/...(if generated)
2. Pages
Create a new standalone Page in a module.
- Class:
Modules/Shop/app/Filament/Pages/Dashboard.php - View:
Modules/Shop/resources/views/filament/pages/dashboard.blade.php
3. Widgets
Create a new Widget in a module.
- Class:
Modules/Analytics/app/Filament/Widgets/StatsOverview.php - View:
Modules/Analytics/resources/views/filament/widgets/stats-overview.blade.php
4. Clusters
Create a new Cluster in a module to group resources and pages.
- Class:
Modules/System/app/Filament/Clusters/Settings/SettingsCluster.php
Other Commands
Most Filament generation commands are supported with the --module flag:
make:filament-relation-managermake:filament-thememake:filament-tablemake:filament-formmake:filament-infolist
โ๏ธ Configuration
The bridge respects your existing modular.php paths and Filament's own configuration. No additional configuration is required.
๐งช Testing
๐ค Contributing
Please see CONTRIBUTING for details.
๐ License
The MIT License (MIT). Please see License File for more information.
Made with โค๏ธ by Ali Harb
All versions of laravel-modular-filament with dependencies
alizharb/laravel-modular Version ^1.2
filament/filament Version ^5.0
spatie/laravel-package-tools Version ^1.16