From 004424aeb0ae7a666b411a327e0e9d7c2f59e5bd Mon Sep 17 00:00:00 2001 From: MatviiB Date: Thu, 25 Jan 2018 17:00:54 +0200 Subject: [PATCH 1/2] commit --- notifier/readme.md | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/notifier/readme.md b/notifier/readme.md index ae1c7b1..99cb8d9 100644 --- a/notifier/readme.md +++ b/notifier/readme.md @@ -1,18 +1,31 @@ ### Installation -Add Provider -Run next publish config: +For Laravel < 5.5 add provider to config/app.php +```php +MatviiB\Notifier\NotifierServiceProvider::class, +``` + +For publish all files run: +```sh +php artisan vendor:publish +``` +and choose "Provider: MatviiB\Notifier\NotifierServiceProvider" if requested. + +Publish just config: ```sh - php artisan vendor:publish --provider=NotifierServiceProvider --tag="config" + php artisan vendor:publish --provider=NotifierServiceProvider --tag=config ``` -Run next for publish js to resources folder: + +Publish just js to resources folder: ```sh - php artisan vendor:publish --provider=NotifierServiceProvider --tag="resources" + php artisan vendor:publish --provider=NotifierServiceProvider --tag=resources ``` -Run next for publish js to public folder: +Publish just js to public folder: ```sh -php artisan vendor:publish --provider=NotifierServiceProvider --tag="public" +php artisan vendor:publish --provider=NotifierServiceProvider --tag=public ``` Add worker daemon for ```php artisan notifier:init``` process with Supervisor. + Add published js file to your view or layout. + Done! From 0a1b60afdb9d655d4f9e1b40b40a851c21c2d216 Mon Sep 17 00:00:00 2001 From: MatviiB Date: Thu, 25 Jan 2018 17:01:57 +0200 Subject: [PATCH 2/2] commit --- notifier/composer.json => composer.json | 0 notifier/readme.md => readme.md | 0 {notifier/src => src}/Commands/Notifier.php | 0 {notifier/src => src}/Contracts/SocketServerInterface.php | 0 {notifier/src => src}/Contracts/SystemMessageInterface.php | 0 {notifier/src => src}/EventMap.php | 0 {notifier/src => src}/Events/Notify.php | 0 {notifier/src => src}/Listeners/NotifyListener.php | 0 {notifier/src => src}/NotifierServiceProvider.php | 0 {notifier/src => src}/Settings.php | 0 {notifier/src => src}/SocketServer.php | 0 {notifier/src => src}/SystemMessage.php | 0 {notifier/src => src}/config/notifier.php | 0 {notifier/src => src}/resources/assets/js/notifier.js | 0 14 files changed, 0 insertions(+), 0 deletions(-) rename notifier/composer.json => composer.json (100%) rename notifier/readme.md => readme.md (100%) rename {notifier/src => src}/Commands/Notifier.php (100%) rename {notifier/src => src}/Contracts/SocketServerInterface.php (100%) rename {notifier/src => src}/Contracts/SystemMessageInterface.php (100%) rename {notifier/src => src}/EventMap.php (100%) rename {notifier/src => src}/Events/Notify.php (100%) rename {notifier/src => src}/Listeners/NotifyListener.php (100%) rename {notifier/src => src}/NotifierServiceProvider.php (100%) rename {notifier/src => src}/Settings.php (100%) rename {notifier/src => src}/SocketServer.php (100%) rename {notifier/src => src}/SystemMessage.php (100%) rename {notifier/src => src}/config/notifier.php (100%) rename {notifier/src => src}/resources/assets/js/notifier.js (100%) diff --git a/notifier/composer.json b/composer.json similarity index 100% rename from notifier/composer.json rename to composer.json diff --git a/notifier/readme.md b/readme.md similarity index 100% rename from notifier/readme.md rename to readme.md diff --git a/notifier/src/Commands/Notifier.php b/src/Commands/Notifier.php similarity index 100% rename from notifier/src/Commands/Notifier.php rename to src/Commands/Notifier.php diff --git a/notifier/src/Contracts/SocketServerInterface.php b/src/Contracts/SocketServerInterface.php similarity index 100% rename from notifier/src/Contracts/SocketServerInterface.php rename to src/Contracts/SocketServerInterface.php diff --git a/notifier/src/Contracts/SystemMessageInterface.php b/src/Contracts/SystemMessageInterface.php similarity index 100% rename from notifier/src/Contracts/SystemMessageInterface.php rename to src/Contracts/SystemMessageInterface.php diff --git a/notifier/src/EventMap.php b/src/EventMap.php similarity index 100% rename from notifier/src/EventMap.php rename to src/EventMap.php diff --git a/notifier/src/Events/Notify.php b/src/Events/Notify.php similarity index 100% rename from notifier/src/Events/Notify.php rename to src/Events/Notify.php diff --git a/notifier/src/Listeners/NotifyListener.php b/src/Listeners/NotifyListener.php similarity index 100% rename from notifier/src/Listeners/NotifyListener.php rename to src/Listeners/NotifyListener.php diff --git a/notifier/src/NotifierServiceProvider.php b/src/NotifierServiceProvider.php similarity index 100% rename from notifier/src/NotifierServiceProvider.php rename to src/NotifierServiceProvider.php diff --git a/notifier/src/Settings.php b/src/Settings.php similarity index 100% rename from notifier/src/Settings.php rename to src/Settings.php diff --git a/notifier/src/SocketServer.php b/src/SocketServer.php similarity index 100% rename from notifier/src/SocketServer.php rename to src/SocketServer.php diff --git a/notifier/src/SystemMessage.php b/src/SystemMessage.php similarity index 100% rename from notifier/src/SystemMessage.php rename to src/SystemMessage.php diff --git a/notifier/src/config/notifier.php b/src/config/notifier.php similarity index 100% rename from notifier/src/config/notifier.php rename to src/config/notifier.php diff --git a/notifier/src/resources/assets/js/notifier.js b/src/resources/assets/js/notifier.js similarity index 100% rename from notifier/src/resources/assets/js/notifier.js rename to src/resources/assets/js/notifier.js