About laravel configuration file


#1

Hi all, My question is about laravel configuration file. I am using Laravel 5.4 framework. I created translations.php under the config folder.
I put into that file these contents.

return [
'text' => 'someurl',
'nb' => 'someurl'
];

And i want to access it inside controller using config('translations.text'); but it returns null.
Thanks beforehands.


#2

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.