@@ -18,13 +18,8 @@ lovely users with Git and/or Composer commands ;-)
1818
1919## Compatibility
2020
21- * PHP:
22- * 7.2
23- * 7.3
24- * 7.4
25- * Laravel:
26- * 5.8
27- * 6.x
21+ * PHP: 7.3 & 7.4
22+ * Laravel: 6.x & 7.x
2823
2924## Install with Composer
3025
@@ -37,36 +32,12 @@ This adds the _codedge/laravel-selfupdater_ package to your `composer.json` and
3732
3833## Register the package
3934
40- Since Laravel 5.5 auto-discovery can be used to register packages - this is supported by this package.
41- So if you run Laravel >=5.5 the steps ` [1] ` and ` [2] ` are not needed.
42-
43- You need to include the service provider in your ` config/app.php ` ` [1] ` and optionally the _ facade_ ` [2] ` :
44- ``` php
45- // config/app.php
46-
47- return [
48-
49- //...
50-
51- 'providers' => [
52- // ...
53-
54- Codedge\Updater\UpdaterServiceProvider::class, // [1]
55- ],
56-
57- // ...
58-
59- 'aliases' => [
60- // ...
61-
62- 'Updater' => Codedge\Updater\UpdaterFacade::class, // [2]
63-
64- ]
65- ```
35+ The package is auto-registered.
6636
6737Additionally add the listener to your ` app/Providers/EventServiceProvider.php ` ` [3] ` :
6838
6939``` php
40+ <?php
7041// app/Providers/EventServiceProvider.php
7142
7243/**
@@ -90,9 +61,9 @@ protected $listen = [
9061
9162## Configuration
9263After installing the package you need to publish the configuration file via
93- ``` sh
94- $ php artisan vendor:publish --provider=" Codedge\Updater\UpdaterServiceProvider"
95- ```
64+ ``` sh
65+ $ php artisan vendor:publish --provider=" Codedge\Updater\UpdaterServiceProvider"
66+ ```
9667
9768** Note:** Please enter correct value for vendor and repository name in your ` config/self-updater.php ` if you want to
9869use Github as source for your updates.
@@ -169,7 +140,7 @@ Route::get('/', function (\Codedge\Updater\UpdaterManager $updater) {
169140** IMPORTANT** :
170141You're responsible to set the current version installed, either in the config file or better via the env variable ` SELF_UPDATER_VERSION_INSTALLED ` .
171142
172- Currently the fetching of the source is a _ synchronous_ process.
143+ Currently, the fetching of the source is a _ synchronous_ process.
173144It is not run in background.
174145
175146### Using Github
0 commit comments