Download the PHP package 34ml/filament-translatable-field without Composer
On this page you can find all versions of the php package 34ml/filament-translatable-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 34ml/filament-translatable-field
More information about 34ml/filament-translatable-field
Files in 34ml/filament-translatable-field
Package filament-translatable-field
Short Description A laravel filament field that handle translation
License MIT
Homepage https://github.com/34ml/filament-translatable-field
Informations about the package filament-translatable-field
A filament field that handles translations
This package enables you to implement the following:
- Render a language selector to change the localized field
- You can save your localized fields data in one click
- You can use it in your relationship manager to show the localized fields
This package depends on spatie/laravel-translatable, Please check it first to set up your translation logic in your project.
Installation
You can install the package via composer:
You can publish the config file with:
This is the content of the published config file where fields are created for each language listed here
Translatable Field Usage
Basic Usage
-
Just add the field in your resource, view, create,or edit pages inside the form function
-
If you want to customize the label of the field
- If you want to add filament field functions
Language Selector
If you want to add a language selector that shows only the selected language's fields instead of showing all fields you can simply add this field in your resource, view, create,or edit pages inside the form function
Relationship Manager
you need to add this code to your relationship manager
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-translatable-field with dependencies
filament/filament Version ^3.0
illuminate/contracts Version *
spatie/laravel-package-tools Version ^1.14.0
spatie/laravel-translatable Version *