add new env variable
This commit is contained in:
parent
6d5e797ece
commit
4938dceef0
32
app/Listeners/Update/V20/Version207.php
Normal file
32
app/Listeners/Update/V20/Version207.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Listeners\Update\V20;
|
||||
|
||||
use App\Abstracts\Listeners\Update as Listener;
|
||||
use App\Events\Install\UpdateFinished as Event;
|
||||
use App\Utilities\Installer;
|
||||
|
||||
class Version207 extends Listener
|
||||
{
|
||||
const ALIAS = 'core';
|
||||
|
||||
const VERSION = '2.0.7';
|
||||
|
||||
/**
|
||||
* Handle the event.
|
||||
*
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handle(Event $event)
|
||||
{
|
||||
if ($this->skipThisUpdate($event)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Update .env file
|
||||
Installer::updateEnv([
|
||||
'MAIL_MAILER' => env('MAIL_DRIVER'),
|
||||
]);
|
||||
}
|
||||
}
|
@ -17,6 +17,7 @@ class Event extends Provider
|
||||
'App\Listeners\Update\V20\Version200',
|
||||
'App\Listeners\Update\V20\Version203',
|
||||
'App\Listeners\Update\V20\Version205',
|
||||
'App\Listeners\Update\V20\Version207',
|
||||
],
|
||||
'Illuminate\Auth\Events\Login' => [
|
||||
'App\Listeners\Auth\Login',
|
||||
|
Loading…
x
Reference in New Issue
Block a user