Download the PHP package pixelpeter/filament-language-tabs without Composer
On this page you can find all versions of the php package pixelpeter/filament-language-tabs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pixelpeter/filament-language-tabs
More information about pixelpeter/filament-language-tabs
Files in pixelpeter/filament-language-tabs
Package filament-language-tabs
Short Description Group multilingual fields into tabs
License MIT
Homepage https://github.com/pixelpeter/filament-language-tabs
Informations about the package filament-language-tabs
Group multilingual fields into tabs
This package is a Filament plugin that allows you to group multilingual fields into tabs. It can be configured which languages are required to be filled out.
Compatibility
Filament | branch/tag |
---|---|
v4.x | main |
v3.x | v2.x |
v2.x | v1.x |
Installation
Install the package via composer:
Publish the config file with:
Optionally, publish the view:
This is the contents of the published config file:
Prerequisites
Install spatie-translatable
Create a model and make it translatable
Create a migration for the model
Setup & configuration
FilamentPHP V4.x
Method 1 (preferred): Add the LanguageTabs component to the PostForm schema
Method 2: Add the LanguageTabs component directly to the Filament resource
FilamentPHP V3.x
Add the LanguageTabs component to your Filament resource
Configure which languages to add to the tabs
Configure for which languages a field is required
If a field is defined as required
it will only be set as required for the languages configured in required_locals
The headline
is not (marked as) required for French language
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review the security policy on how to report security vulnerabilities.
Credits
- pixelpeter
- Thanks to ralphjsmit for the inspiration of creating a TestableForm to help with testing this component
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-language-tabs with dependencies
filament/filament Version ^4.0
filament/schemas Version ^4.0
laravel/framework Version 11.*|12.*
spatie/laravel-package-tools Version ^1.13.5