我知道外墙是如何工作的,我可以在Laravel找到完整的门面清单:https://laravel.com/api/5.2/Illuminate/Support/Facades.html
但是我怎样才能看到每个立面的所有可用功能?
如果我使用 Session
Facade我可以:
-
在laravel文档中查找方法 - https://laravel.com/docs/5.2/session
-
Illuminate/Session
命名空间中每个类的搜索方法 - https://laravel.com/api/5.2/Illuminate/Session.html
有没有更优雅的方式来找到可用的功能?
2 回答
看here . 但我总是会花点时间看看来源;)
BTW . 你也可以使用PHP方法
get_class_methods()
您发布的链接(https://laravel.com/api/5.2/Illuminate/Support/Facades.html)可能是最好的方法 . 有's no 1508770 way than using documentation provided by the code'的作者 .
您可以利用的另一个资源,它为您提供Facade背后的类名及其文档的链接,如下所示:https://laravel.com/docs/5.2/facades#facade-class-reference
该页面顶部有一个版本选择器,您可以找到您的版本 .