<?php
 namespace TechSoft\Laravel\Wechat; use Illuminate\Support\ServiceProvider; use TechSoft\Laravel\Wechat\Support\WechatAuthorizationServer; class WechatServiceProvider extends ServiceProvider { public function boot() { $this->publishes([ __DIR__ . '/../../config/wechat.php' => config_path('wechat.php') ], 'config'); } public function register() { $this->mergeConfigFrom( __DIR__ . '/../../config/wechat.php', 'wechat' ); $this->app->singleton('wechatAuthorizationServer_1', WechatAuthorizationServer::class); } }