diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ce9aa62..432a07c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,7 +6,7 @@ jobs: strategy: matrix: operating-system: [ubuntu-latest] - php-versions: ['7.2', '7.3', '7.4'] + php-versions: ['7.3', '7.4'] name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} steps: - uses: actions/checkout@v1 diff --git a/README.md b/README.md index 7253830..af57bed 100644 --- a/README.md +++ b/README.md @@ -18,13 +18,8 @@ lovely users with Git and/or Composer commands ;-) ## Compatibility -* PHP: - * 7.2 - * 7.3 - * 7.4 -* Laravel: - * 5.8 - * 6.x +* PHP: 7.3 & 7.4 +* Laravel: 6.x & 7.x ## Install with Composer @@ -37,36 +32,12 @@ This adds the _codedge/laravel-selfupdater_ package to your `composer.json` and ## Register the package -Since Laravel 5.5 auto-discovery can be used to register packages - this is supported by this package. -So if you run Laravel >=5.5 the steps `[1]` and `[2]` are not needed. - -You need to include the service provider in your `config/app.php` `[1]` and optionally the _facade_ `[2]`: -```php -// config/app.php - -return [ - - //... - - 'providers' => [ - // ... - - Codedge\Updater\UpdaterServiceProvider::class, // [1] - ], - - // ... - - 'aliases' => [ - // ... - - 'Updater' => Codedge\Updater\UpdaterFacade::class, // [2] - -] -``` +The package is auto-registered. Additionally add the listener to your `app/Providers/EventServiceProvider.php` `[3]`: ```php +=7.2", + "php": ">=7.3", "ext-json": "*", "ext-zip": "*", - "laravel/framework": "^5.8|6.*", + "laravel/framework": "^6.0|^7.0", "guzzlehttp/guzzle": "6.*" }, "require-dev": {