mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
add check version and refactpr auto update
This commit is contained in:
@ -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;
|
||||
|
||||
@ -11,8 +11,6 @@ use Laraspace\Setting;
|
||||
|
||||
class Version101 extends Listener
|
||||
{
|
||||
const ALIAS = 'core';
|
||||
|
||||
const VERSION = '1.0.1';
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user