public function register() { $this->app->singleton([Pinyin::class => 'pinyin'], function ($app) { return new Pinyin(); }); }