davielee9 years ago Best Answer Level 11ReplyReport SpamThis isn't necessarily a Lumen specific thing, but more of a Composer thing. In your composer.json file, you can add this line under autoload (The rest of the file has been truncated for brevity). { "autoload": { "files": [ "path/to/helpers.php" ] } } Then just run composer dump-autoload and you should be good to go. Like Reply 4 likes
kamleshcgtechno5 years agoLevel 1ReplyReport SpamI have used helper in Lumen 8.0. Please check below link for the same: https://stackoverflow.com/questions/67327897/how-to-use-a-helper-class-in-lumen-8-0/67328049#67328049 Like Reply
Uinta_Ranger2 years agoLevel 1ReplyReport SpamIt worked for me on Lumen 6.3.3 using this pattern AND setting up composer.json the way davielee has shown (above). Like Reply