I have a custom folder inside the resources folder like this : resources/test_folder/index.php
Now i want to access a helper function inside this index.php.
Getting undefined function error.
Its working fine in the resources/views.Is there any default mapping between the resources/views and helper functions?
Helpers are autoloaded in the composer file like this:
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
},
"files": [
"app/Http/GlobalFunctions.php"
]
}
Function inside the helper:
function debug($data = array())
{
echo '<pre>';
print_r($data);
echo '</pre>';
}