Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5 - Config sub-folder

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.

like image 968
user1995781 Avatar asked Mar 24 '15 07:03

user1995781


1 Answers

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.

like image 67
Kamran Avatar answered Oct 12 '22 10:10

Kamran