Download the PHP package solution-forest/filament-field-group without Composer
On this page you can find all versions of the php package solution-forest/filament-field-group. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download solution-forest/filament-field-group
More information about solution-forest/filament-field-group
Files in solution-forest/filament-field-group
Package filament-field-group
Short Description test
License MIT
Homepage https://github.com/solutionforest/filament-field-group
Informations about the package filament-field-group
About Solution Forest
Solution Forest Web development agency based in Hong Kong. We help customers to solve their problems. We Love Open Soruces.
We have built a collection of best-in-class products:
- VantagoAds: A self manage Ads Server, Simplify Your Advertising Strategy.
- GatherPro.events: A Event Photos management tools, Streamline Your Event Photos.
- Website CMS Management: Website CMS Management - Filament CMS Plugin
- Filaletter: Filaletter - Filament Newsletter Plugin
Filament Field Group
Filament Field Group is a powerful Laravel package that enhances Filament's form building capabilities. It allows you to easily group and organize form fields, improving the structure and readability of your forms. With this package, you can create collapsible sections, tabs, or custom layouts for your form fields, making complex forms more manageable and user-friendly.
Installation
-
You can install the package via composer:
-
Register the plugin in your Panel provider
- Then execute the following commands:
Publish Config, View, Translation and Migration
You can publish and run the migrations with:
You can publish the config file with:
Optionally, you can publish the views using
This is the contents of the published config file:
Usage
- Add
FilamentFieldGroupPlugin
to you panel. - Enable the Field Group resource by setting
enabled
totrue
in the config file:
Or enable the plugin on FilamentFieldGroupPlugin
-
Create field groups and fields, for example:
- Navigate to the Field Group resource in your Filament admin panel.
- Create a new field group (e.g., "User Basic Info").
- Add fields to the group (e.g., name, email, etc.).
- Apply field groups to your form schema:
Available Components
Currently, this package provides the following components:
- Text
- TextArea
- Password
- Number
- Url
- Select
More components can be added in the future. Feel free to submit a pull request if you have ideas for additional components!
Advanced Usage
Custom Resources
You can call resources
on FilamentFieldGroupPlugin
to add/replace original resource:
Custom Field Types
You can add or replace original field type configurations using the fieldTypeConfigs
method on either FilamentFieldGroupPlugin
or FilamentFieldGroup
. Here are two options:
Option 1: On Your Filament Panel
Option 2: On Your AppServiceProvider
Custom Models
This section allows you to customize the model used for field groups in the Filament Field Group package. By replacing the default FieldGroup
model with your own implementation, you can extend or modify its behavior to suit your application's needs.
To do this, use the setFieldGroupModelClass
or setFieldModelClass
methods from the FilamentFieldGroup
facade, specifying the original model and your custom model. Here's an example:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
We welcome contributions to enhance this package. More components can potentially be added, so feel free to submit a pull request with your ideas or improvements.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- alan
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-field-group with dependencies
filament/filament Version ^3.0
spatie/eloquent-sortable Version ^4.0.0
spatie/laravel-package-tools Version ^1.15.0