Skip to content

Commit

Permalink
event file added for v2.0.20
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Aug 28, 2020
1 parent 3260c48 commit 548ea41
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions app/Listeners/Update/V20/Version2020.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace App\Listeners\Update\V20;

use App\Abstracts\Listeners\Update as Listener;
use App\Events\Install\UpdateFinished as Event;
use Illuminate\Support\Facades\Artisan;

class Version2020 extends Listener
{
const ALIAS = 'core';

const VERSION = '2.0.20';

/**
* Handle the event.
*
* @param $event
* @return void
*/
public function handle(Event $event)
{
if ($this->skipThisUpdate($event)) {
return;
}

Artisan::call('migrate', ['--force' => true]);
}
}
1 change: 1 addition & 0 deletions app/Providers/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Event extends Provider
'App\Listeners\Update\V20\Version209',
'App\Listeners\Update\V20\Version2014',
'App\Listeners\Update\V20\Version2017',
'App\Listeners\Update\V20\Version2020',
],
'Illuminate\Auth\Events\Login' => [
'App\Listeners\Auth\Login',
Expand Down

0 comments on commit 548ea41

Please sign in to comment.