andrefelipe18/filament-partials

Create partials of a resource

v1.0.0 2025-01-26 14:34 UTC

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.