Support the ongoing development of Laravel.io →
Configuration Packages
Last updated 2 years ago.
0

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),

);
Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.