added new env variables

This commit is contained in:
denisdulici 2020-01-29 23:33:50 +03:00
parent 228a6c51ca
commit 6f66dd0d36

View File

@ -12,6 +12,7 @@ use App\Models\Common\Company;
use App\Models\Common\Contact;
use App\Models\Common\EmailTemplate;
use App\Models\Common\Report;
use App\Utilities\Installer;
use App\Utilities\Overrider;
use Artisan;
use DB;
@ -58,6 +59,8 @@ class Version200 extends Listener
$this->updatePermissions();
$this->deleteOldFiles();
$this->updateEnv();
}
public function updateDatabase()
@ -1105,6 +1108,15 @@ class Version200 extends Listener
}
}
public function updateEnv()
{
Installer::updateEnv([
'QUEUE_CONNECTION' => 'sync',
'LOG_CHANNEL' => 'stack',
'FIREWALL_ENABLED' => 'true',
]);
}
protected function create($model, $data)
{
$model->timestamps = false;