I'm trying to create a modular application in laravel, So in my app/Modules directory, I create folder for each module.
Inside each module lies ( models, controllers, views) directories.
I want to put some config vairables for some module , So created config/config.php inside each module, but I can't make it work..
The content of the my config file is:
<?php
return [
'test' => 'good',
];
When I try to access this config variable from my controllers like that: echo config('test'); it doesn't work.
What is missing ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire