This package allows you to create partials for a resource in Filament, providing a structured approach to managing resource components.
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.
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"
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.
Run the following command to execute tests:
composer test
Please see the CHANGELOG for more details on recent updates and changes.
Contributions are welcome!
This project is licensed under the MIT License. For more information, please see the License File.