Download the PHP package alareqi/filament-translatable-fields without Composer
On this page you can find all versions of the php package alareqi/filament-translatable-fields. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package filament-translatable-fields
Filament Translatable Fields
This package adds a way to make all filament fields translatable.
It uses the spatie/laravel-translatable package in the background.
Compatible with Laravel 10, 11, and 12.
Installation
You can install the package via composer:
Add the plugin to your desired Filament panel:
You can specify the supported locales:
By default, the package will use the app.locale if you don't specify the locales.
Usage
You can simply add ->translatable() to any field to make it translatable.
Overwrite locales
If you want to overwrite the locales on a specific field you can set the locales through the second parameter of the ->translatable() function.
Good to know
This package will substitute the original field with a Filament\Forms\Components\Tabs component. This component will render the original field for each locale.
All chained methods you add before calling ->translatable() will be applied to the original field.
All chained methods you add after calling ->translatable() will be applied to the Filament\Forms\Components\Tabs component.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- Ayman Alareqi
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-translatable-fields with dependencies
filament/filament Version ^4.0|^5.0
laravel/framework Version ^10.0|^11.0|^12.0|^13.0
spatie/laravel-package-tools Version ^1.16
spatie/laravel-translatable Version ^6.6