In Laravel 5, we can read a config value via this:
config('app.url')
But, how can we read config file value in the sub-folder? I have tried with config('subfolder/app.url')
but it didn't work.
You can do like this in laravel 5 config('subfolder.myfile.var')
; subfolder
is folder name , myfile
is your file name and var
is your variable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With