fx/translation

v1.0.0 2019-06-10 15:07 UTC

This package is auto-updated.

Last update: 2021-05-10 20:12:45 UTC


README

Installation

  • use composer
composer require fx/translation

Usage

  • Publish config file
php artisan vendor:publish --provider="Fx\\Translation\\Providers\\FxTranslationServiceProvider"
  • anywhere, eg:
// routes/web.php
use Fx\Translation\Contacts\Translate;

Route::get('/', function (Translate $translate) {
    dd($translate->trans("You look so good", "zh"));
});