use configuration laravel code example
Example 1: laravel include config
use Illuminate\Support\Facades\Config;
Example 2: laravel set config
config()->set('config.path', $value);
use Illuminate\Support\Facades\Config;
config()->set('config.path', $value);