PHPackages                             thenonsensefactory/translate - 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. [Database &amp; ORM](/categories/database)
4. /
5. thenonsensefactory/translate

ActiveLibrary[Database &amp; ORM](/categories/database)

thenonsensefactory/translate
============================

A little package to translate what you need in a model and provide to the user the translate field following the App Locale

1.3.1(6mo ago)0420[1 issues](https://github.com/bertog/Translate/issues)MITPHPCI failing

Since Apr 16Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/bertog/Translate)[ Packagist](https://packagist.org/packages/thenonsensefactory/translate)[ Docs](https://github.com/bertog/Translate.git)[ RSS](/packages/thenonsensefactory-translate/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (5)Versions (11)Used By (0)

Translate
=========

[](#translate)

[![Latest Version on Packagist](https://camo.githubusercontent.com/59a0c3c21bf2777fd573032808b89fbdd427fa87c06f5750ac92afab8c98a526/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468656e6f6e73656e7365666163746f72792f7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thenonsensefactory/translate)[![Total Downloads](https://camo.githubusercontent.com/3c3344a37f78a4e01b31b209bfc70ad499181fb0d3b67694d102b502b9eced70/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468656e6f6e73656e7365666163746f72792f7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thenonsensefactory/translate)[![Build Status](https://camo.githubusercontent.com/349fcd9de4532e751f457f5bdf955eadfbd13fbf05a0914bc3e11298ded90ec3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468656e6f6e73656e7365666163746f72792f7472616e736c6174652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thenonsensefactory/translate)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

A very simple package to translate everything you need in a Laravel Model and present to the user the field in the language set in the application

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

[](#installation)

Via Composer

```
$ composer require thenonsensefactory/translate
```

Usage
-----

[](#usage)

First run the needed migration:

```
$ php artisan migrate
```

Now your database have a new table called 'translations'

In order to have a model Transatable add the relative Trait

```
