引入辅助函数后缓存报错问题该如何解决?
在 项目规范 辅助函数 一章,引入了 helpers.php
文件。
执行
php artisan config:cache
php artisan route:cache
报错
Symfony\Component\Debug\Exception\FatalErrorException : Cannot redeclare route_class() (previously declared in C:\www\prod\bootstrap\helpers.php:11)
Whoops\Exception\ErrorException : Cannot redeclare route_class() (previously declared in C:\www\prod\bootstrap\helpers.php:11)
推荐文章: