I don't believe package configs work in the same way as the normal config files.
You can use something like this in the config file to achieve similar results.
<?php
return array(
'compress' => (App::environment() == 'production' ? true : false),
);
iWader said:
I don't believe package configs work in the same way as the normal config files.
Yes they does.
Just use artisan config:publish your/package, then if you want to achieve a custom configuration for a specific environment, just copy the folder structure in your config sub folder corresponding to your given environment.
e.g : /config/local/packages/your/package/config.php
Laravel will detect automaticaly and use the one corresponding to the current environment
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community