PHPackages                             kaantanis/filament-model-translatable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. kaantanis/filament-model-translatable

ActiveLibrary[Localization &amp; i18n](/categories/localization)

kaantanis/filament-model-translatable
=====================================

This is my package filament-model-translatable

v0.1.0-alpha(1y ago)13MITPHPPHP ^8.2

Since Aug 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/KaanTanis/filament-model-translatable)[ Packagist](https://packagist.org/packages/kaantanis/filament-model-translatable)[ Docs](https://github.com/kaantanis/filament-model-translatable)[ GitHub Sponsors](https://github.com/KaanTanis)[ RSS](/packages/kaantanis-filament-model-translatable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (12)Versions (2)Used By (0)

Filament Model Translatable
===========================

[](#filament-model-translatable)

[![Latest Version on Packagist](https://camo.githubusercontent.com/47d420735cdff189cb75ae070756a6659c69d53a543e945f27f1cc22059a25ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b61616e74616e69732f66696c616d656e742d6d6f64656c2d7472616e736c617461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kaantanis/filament-model-translatable)[![GitHub Tests Action Status](https://camo.githubusercontent.com/98c39a8e0cd4ddd60e4d0d897855637d560603119ef35544dcf881db2e0b54b5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b61616e74616e69732f66696c616d656e742d6d6f64656c2d7472616e736c617461626c652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/kaantanis/filament-model-translatable/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/ff7f08adb0ba040c86e5c246c02c08dc13d845b41bc8c4125d845908b5e16cd3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b61616e74616e69732f66696c616d656e742d6d6f64656c2d7472616e736c617461626c652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/kaantanis/filament-model-translatable/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/f64aa1ed521561a0076ab6b4a72478fbd9e0159bf8928eaba0e2d0334201c408/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b61616e74616e69732f66696c616d656e742d6d6f64656c2d7472616e736c617461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kaantanis/filament-model-translatable)

Filament model translatable is a package that provides a trait to make your models translatable in Laravel Filament. The data is stored in a new table with the model's id, the field name, the language, and the value.

[![Screenshot](https://raw.githubusercontent.com/KaanTanis/filament-model-translatable/main/art/resource.png)](https://raw.githubusercontent.com/KaanTanis/filament-model-translatable/main/art/resource.png)[![Screenshot](https://raw.githubusercontent.com/KaanTanis/filament-model-translatable/main/art/migration.png)](https://raw.githubusercontent.com/KaanTanis/filament-model-translatable/main/art/migration.png)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require kaantanis/filament-model-translatable
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="filament-model-translatable-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="filament-model-translatable-config"
```

This is the contents of the published config file:

```
