use config laravel code example
Example 1: laravel include config
use Illuminate\Support\Facades\Config;
Example 2: laravel APP_ENV config
if (\Illuminate\Support\Facades\App::environment('production')) {
// The environment is production
}
Example 3: laravel set config
config()->set('config.path', $value);