set variable in config laravel code example Example: laravel set config config()->set('config.path', $value);