Skip to content

Commit

Permalink
Added update listener
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Nov 8, 2021
1 parent 39f53f2 commit 0cee0e0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions app/Listeners/Update/V21/Version2127.php
@@ -0,0 +1,30 @@
<?php

namespace App\Listeners\Update\V21;

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

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

const VERSION = '2.1.27';

/**
* 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
Expand Up @@ -38,6 +38,7 @@ class Event extends Provider
'App\Listeners\Update\V21\Version2124',
'App\Listeners\Update\V21\Version2125',
'App\Listeners\Update\V21\Version2126',
'App\Listeners\Update\V21\Version2127',
],
'Illuminate\Auth\Events\Login' => [
'App\Listeners\Auth\Login',
Expand Down

0 comments on commit 0cee0e0

Please sign in to comment.