定制 andrefelipe18/filament-partials 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

andrefelipe18/filament-partials

最新稳定版本:v1.0.0

Composer 安装命令:

composer require andrefelipe18/filament-partials

包简介

Create partials of a resource

README 文档

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.

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-26