在Lavavel5上通用的方法放在哪里比较好?

来源:互联网 发布:有什么渲染软件 编辑:程序博客网 时间:2024/04/27 16:13

在Lavavel5上一些通用的方法(common functions/helper functions)放在什么位置那个文件比较好?
论坛里看到了个比较满意的回答。

"autoload": {    "classmap": [        "database"    ],    "psr-4": {        "Tasky\\": "app/"    },    "files": [        "app/Support/helpers.php"    ]},
$ composer dumpautoload

References

best-practices-for-custom-helpers-on-laravel-5 @lvismer

0 0
原创粉丝点击