In Laravel 5.0
I have set in config/app.php
this:
return [
//...
'languages' => ['en','it'],
//...
]
Then, I have a blade wrapper in resources/views/frontend/includes/menus/guest.blade.php
@foreach (Config::get('languages') as $lang => $language)
But, Laravel says that foreach has no valid argument, which means that Config::get('languages')
returns null
.
I can't set custom variables in app.php
?