This package gives you an easy way to translate Eloquent models into multiple languages.
// Display the default title for an Eloquent object.
echo $foo->title;
// Change the current language to Swedish.
App::setLocale('sv');
// Display the translated title in Swedish.
echo $foo->title;
Read more about how this package was created and why it exists in this blog post.
This package features an extensive wiki to help you getting started implementing the translator in your Laravel and Lumen applications. Take me to the docs!
Laravel Translator is licensed under The MIT License (MIT).