$credentials = app_path();
结果是:
[Symfony \ Component \ Debug \ Exception \ FatalThrowableError]调用未定义函数App \ LtClasses \ app_path()
但它在此处被列为帮助器:https : //laravel.com/docs/5.3/helpers#method-app-path
这些是Laravel文档,您在Lumen上没有相同的帮助程序,您可以查看Lumen框架随附的帮助程序,网址为
/vendor/laravel/lumen-framework/src/helpers.php
解决方案,实现您在这里的需要可能是
app()->path();
app('path');
base_path('app');
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句