I’ve added a file inside App/icons/icons.php which has an array
<?php
$skills_icon = array(
‘one’,
‘two’,
‘three’
);
I have added the icons.php file in functions.php
array_map(function ($file) use ($sage_error) {
$file = "../app/{$file}.php";
if (!locate_template($file, true, true)) {
$sage_error(sprintf(__('Error locating <code>%s</code> for inclusion.', 'sage'), $file), 'File not found');
}
}, ['icons/icons','helpers', 'customizers/intro', 'customizers/skills', 'widgets/skills']);
and in my views home.blade.php I want to recieve array values values from it.
{{ var_dump($skills_icon)}}
But im receiving NULL values.
Anything I'm missing?