About laravel configuration file

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.

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