Answers for "laravel use configs instead of env"

PHP
2

laravel set config

config()->set('config.path', $value);
Posted by: Guest on January-08-2021
2

laravel APP_ENV config

if (IlluminateSupportFacadesApp::environment('production')) {
    // The environment is production
}
Posted by: Guest on November-10-2020

Browse Popular Code Answers by Language