bozhilin/translator

1.4.1 2019-12-11 08:13 UTC

This package is auto-updated.

Last update: 2020-02-11 08:31:12 UTC


README

Install

$ composer require bozhilin/translator

Config

$ php artisan vendor:publish --provider="Bozhilin\Translator\Providers\TranslatorServiceProvider"

Environment (optional)

Add a parameter into .env Default value is google

TRANSLATOR_DRIVER=google

Including

use Bozhilin\Translator\Facades\Translate;

Usage

Translate::query('success')
    ->from('en')
    ->to('zh-TW')
    ->post();
    
// echo "成功"