andrefelipe18 / filament-partials
Create partials of a resource
Fund package maintenance!
andrefelipe
Requires
- php: ^8.2
- illuminate/contracts: ^10.0||^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- spatie/laravel-ray: ^1.35
This package is auto-updated.
Last update: 2025-05-12 16:43:50 UTC
README
This package allows you to create partials for a resource in Filament, providing a structured approach to managing resource components.
What is Partial?
Partial is a strategy to avoid inflating your resources. It involves having a separate trait for a resource's form and table, allowing for better code control, especially in large projects. By splitting these components, you can maintain a cleaner and more organized codebase, improving scalability and maintainability.
Installation
You can install the package via Composer:
composer require andrefelipe18/filament-partials
You can publish the configuration file with:
php artisan vendor:publish --tag="filament-partials-config"
Usage
To create partials for a specific resource, use the following command:
php artisan make:filament-partials PostResource --only=table,form
This will create partials for the PostResource, specifically for the table
and form
components.
Testing
Run the following command to execute tests:
composer test
Changelog
Please see the CHANGELOG for more details on recent updates and changes.
Contributing
Contributions are welcome!
Credits
License
This project is licensed under the MIT License. For more information, please see the License File.