Skip to content

nfangxu/package-fx-translation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fx/translation

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"));
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages