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