摘要: 1. 实例化一个类 2.全局注册这个类 3.在控制器中使用 public function register() { $this->app->singleton('wxminapp', function () { return (new WxServiceProvider)->boot(); }); 阅读全文
posted @ 2023-05-17 15:23 skyhxm 阅读(136) 评论(0) 推荐(0)