From 98d5e0077c326137352f8a169d2b1b983b3a8aaf Mon Sep 17 00:00:00 2001 From: MatviiB Date: Thu, 25 Jan 2018 17:46:17 +0200 Subject: [PATCH 1/2] commit --- readme.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 99cb8d9..76de5f3 100644 --- a/readme.md +++ b/readme.md @@ -28,4 +28,10 @@ Add worker daemon for ```php artisan notifier:init``` process with Supervisor. Add published js file to your view or layout. -Done! +### Use + +Anywhere in your application add next event to send data to frontend: +```php +$data = json_encode(['some' => 'changes']); +event(new Notify($data)); +``` \ No newline at end of file From adb28e0a6b6d2a0ded86cb92ec9f369aca8a3340 Mon Sep 17 00:00:00 2001 From: MatviiB Date: Thu, 25 Jan 2018 17:47:55 +0200 Subject: [PATCH 2/2] commit --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index f320ac9..13a16e9 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "socket" ], "type": "library", - "version": "v0.0.3", + "version": "v0.0.4", "license": "MIT", "authors": [ {