请问`$this->app->alias(Weather::class, 'weather');`是什么意思呀?
请问在composer扩展包开发教程中的为 Laravel 集成优化这里src/ServiceProvider.php
中$this->app->alias(Weather::class, 'weather');
这一句的作用是什么?在laravel文档哪个章节中有相关介绍呢?
我把laravel文档从头翻到尾,也没看到这个alias
相关的内容,好尴尬啊~
推荐文章: