PHPackages                             atomjoy/trans - 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. atomjoy/trans

ActiveLibrary

atomjoy/trans
=============

Laravel database translations.

v1.0.2(3y ago)013MITPHP

Since Feb 15Pushed 3y ago1 watchersCompare

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

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Laravel Translations
====================

[](#laravel-translations)

Laravel translations from database.

Install
-------

[](#install)

```
composer require "atomjoy/trans"

composer update
composer dump-autoload -o
```

Migrate, locales
----------------

[](#migrate-locales)

```
# locales
php artisan lang:publish

# update tables
php artisan migrate

# new tables
php artisan migrate:fresh
```

Laravel trans
-------------

[](#laravel-trans)

lang/pl.json

```
{
"This text not exists in db": "Ten tekst nie istnieje w bazie danych"
}
```

Examples
--------

[](#examples)

routes/web.php

```
