【发布时间】:2016-06-07 06:03:36
【问题描述】:
我在我的项目中使用responsive File Manager。我需要在公共文件夹内的配置文件中添加 CSRF 令牌。在该配置文件中使用 csrf_token() 不起作用:
$token = csrf_token(); //this is inside filemanager confing.php
Fatal error: Call to undefined function csrf_token() in
E:\xampp\htdoc\site\public\plugin\filemanager\config\config.php on line 7
那么我怎样才能在公用文件夹中访问此功能?或完全访问 Laravel 典型路径之外的应用程序实例?
【问题讨论】:
-
您的问题实际上出在其他地方。您的插件不应位于公共文件夹下。您可能应该使用节点来安装github.com/trippo/ResponsiveFilemanager