Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 4 - Read config files

How can i read the config files from laravel? For example for the database connection (app/config/database/.php)

I want the mysql data from the config.

For a package you do it like that:

return Config::get('package::group.option');

But how to do it for the main files?

like image 423
TheNiceGuy Avatar asked Dec 09 '22 14:12

TheNiceGuy


1 Answers

I do Config::get('database.default') for example.

like image 106
gmaliar Avatar answered Dec 11 '22 07:12

gmaliar