PHPackages                             geeksdevelop/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. geeksdevelop/translate

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

geeksdevelop/translate
======================

Package for handling translations of data in the database

1.0.1(9y ago)3242MITPHP

Since Jan 27Pushed 9y ago3 watchersCompare

[ Source](https://github.com/geeksdevelop/translate)[ Packagist](https://packagist.org/packages/geeksdevelop/translate)[ RSS](/packages/geeksdevelop-translate/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (3)Used By (0)

Laravel Translate Data
======================

[](#laravel-translate-data)

\###Compatible with laravel versions 5.1, 5.2, 5.3 and 5.4 Package for the translation of fields in the database according to the language of configuration of the laravel system.

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

[](#installation)

```
  composer require geeksdevelop/translate
```

### Service Provider

[](#service-provider)

Add the package to your application service providers in `config/app.php` file.

```
'providers' => [
    /*
     * Package Service Providers...
     */
    Geeksdevelop\Translate\TranslateProvider::class,
],
```

### Publish

[](#publish)

Publish the migration to your application. Run these commands inside your terminal.

```
  php artisan vendor:publish --provider="Geeksdevelop\Translate\TranslateProvider"
```

### Migrate the tables

[](#migrate-the-tables)

Run migrations.

```
  php artisan migrate
```

### Include trait to models

[](#include-trait-to-models)

Include the `Translate` feature within your models where you need to translate fields.

```
