app->singleton(Client::class, function ($app) { return new Client(config('jpush.key'), config('jpush.secret')); }); $this->app->alias(Client::class, 'jpush'); } }