for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace JellyBool\Translug;
use GuzzleHttp\Client;
use Illuminate\Support\ServiceProvider;
class TranslugServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
* Bootstrap the application services.
* @return void
public function boot()
//
}
* Register the application services.
public function register()
$this->app->singleton('translug', function () {
return new Translation(new Client(), config('services.youdao'));
});