4
1
# How to register utilities class on Laravel 5.8
2
# File: composer.json
3
# ref: https://stackoverflow.com/questions/28290332/best-practices-for-custom-helpers-in-laravel-5
4
"autoload": {
5
"classmap": [
6
...
7
],
8
"psr-4": {
9
"App\\": "app/"
10
},
11
"files": [
12
"app/helpers.php" // <---- ADD THIS
13
]
14
},
15
16
# Then run: `composer dump-autoload`
Source: stackoverflow.com
0 comments:
Post a Comment
Thanks