add check version and refactpr auto update

This commit is contained in:
jayvirsinh_gohil
2019-11-14 21:00:17 +05:30
parent 0d9ca2a0fd
commit 917b618ac7
7 changed files with 37 additions and 19 deletions

View File

@ -4,8 +4,6 @@ namespace Laraspace\Listeners\Updates;
class Listener
{
const ALIAS = '';
const VERSION = '';
/**
@ -16,11 +14,6 @@ class Listener
*/
protected function check($event)
{
// Apply only to the specified alias
// if ($event->alias != static::ALIAS) {
// return false;
// }
// Do not apply to the same or newer versions
// if (version_compare($event->old, static::VERSION, '>=')) {
// return false;

View File

@ -11,8 +11,6 @@ use Laraspace\Setting;
class Version101 extends Listener
{
const ALIAS = 'core';
const VERSION = '1.0.1';
/**