PHPackages                             lechihuy/laratrans - 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. lechihuy/laratrans

AbandonedArchivedLibrary

lechihuy/laratrans
==================

Support multiple language resources for Laravel.

v1.0.0(4y ago)34MITPHPPHP ^8.0

Since Oct 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/lechihuy/laratrans)[ Packagist](https://packagist.org/packages/lechihuy/laratrans)[ Docs](https://github.com/lechihuy/laratrans)[ RSS](/packages/lechihuy-laratrans/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![Total Downloads](https://camo.githubusercontent.com/350150b3dc3d86b14121aee2459dc2ff68e2bc7db320ed9b34c3a9a344398dd5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c656368696875792f6c6172617472616e73)](https://packagist.org/packages/lechihuy/laratrans)[![Latest Stable Version](https://camo.githubusercontent.com/fd24dfe40c2b38f4b6e42ab4f7cf9c4e372a5577c8043c69ae2f541b88de5a54/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c656368696875792f6c6172617472616e73)](https://packagist.org/packages/lechihuy/laratrans)[![License](https://camo.githubusercontent.com/499dbeb33970d9a9d56a2f62c8377199b6d17d4ef969656f658aeefa7485198e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c656368696875792f6c6172617472616e73)](https://packagist.org/packages/lechihuy/laratrans)

Laratrans
=========

[](#laratrans)

Support multiple language resources for Laravel.

Docs
----

[](#docs)

### Installation

[](#installation)

```
composer require lechihuy/laratrans
```

After you install the package successfully, open your terminal at your project and run the following command:

```
php artisan laratrans:install
```

### Configuration

[](#configuration)

You can configure the package in `app/config/translatable.php`, please read it to detail more.

### Database

[](#database)

...

### Model

[](#model)

Imaginary, you need to apply translation for `Post` model.

First, use the `Laratrans\Translatable` trait in `Post` model file as bellow:

```
