Laravel 生成helpers.php助手函数
1、找到根目录 composer.json 文件如下所示添加:"autoload": { "files": [ "app/helpers.php" ], "classmap": [ "database/seeds", "database/factories" ], "psr-4": {