If this works locally, carefully check the letter case of all the files compared to composer.json
Jun 8, 2019
5
Level 13
Custom helper files ar not working on shared hosting account
i have 3 files added to composer.jason file
"files" :[
"App/Helpers/activeAdminSidebar.php",
"App/Helpers/messages.php",
"App/Helpers/isOnline.php"
]
The app is fully active on a share hosting account (working perfectly ) except when these 3 files are called withen the app. at that poing im getting this error
Call to undefined function setMainButton() (View: /home/demolinx/resources/views/layouts/sidemenu.blade.php) (View: /home/demolinx/resources/views/layouts/sidemenu.blade.php) (View: /home/demolinx/resources/views/layouts/sidemenu.blade.php)
the setMainButton() is defined in one of the helpers files, Clearly the helper file are not loaded correctly this is why i'm getting these errors.
so my question is? how to reload the helper file on shared hosting using ssh ????
NOTE : composer dump-autoload + composer install is not fixing it for me
Level 122
3 likes
Please or to participate in this conversation.