Skip to content

Commit

Permalink
build 311
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpanjwani committed Jun 1, 2020
1 parent db622e7 commit 2e5cb58
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 6 deletions.
32 changes: 32 additions & 0 deletions app/Listeners/Updates/v3/Version311.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

namespace Crater\Listeners\Updates\v3;

use Crater\Listeners\Updates\Listener;
use Crater\Events\UpdateFinished;
use Crater\Setting;
use Crater\Currency;
use Artisan;

class Version311 extends Listener
{
const VERSION = '3.1.1';

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

Artisan::call('migrate', ['--force' => true]);

// Update Crater app version
Setting::setSetting('version', static::VERSION);
}
}
2 changes: 2 additions & 0 deletions app/Providers/EventServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Crater\Listeners\Updates\v2\Version210;
use Crater\Listeners\Updates\v3\Version300;
use Crater\Listeners\Updates\v3\Version310;
use Crater\Listeners\Updates\v3\Version311;

class EventServiceProvider extends ServiceProvider
{
Expand All @@ -30,6 +31,7 @@ class EventServiceProvider extends ServiceProvider
Version210::class,
Version300::class,
Version310::class,
Version311::class,
],
Registered::class => [
SendEmailVerificationNotification::class,
Expand Down
2 changes: 1 addition & 1 deletion config/crater.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
|
*/

'version' => '3.1.0',
'version' => '3.1.1',

];
4 changes: 2 additions & 2 deletions public/assets/css/crater.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/assets/js/app.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/assets/js/app.js": "/assets/js/app.js?id=08d4f6357dbe7738effa",
"/assets/css/crater.css": "/assets/css/crater.css?id=a00ceebbb86dd82a024b"
"/assets/js/app.js": "/assets/js/app.js?id=3c9e7bf904dd1bcdf67f",
"/assets/css/crater.css": "/assets/css/crater.css?id=f5a1617422acad8e44a1"
}

0 comments on commit 2e5cb58

Please sign in to comment.