Skip to content

Commit

Permalink
Merge branch 'release/v0.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
MatviiB committed Jan 25, 2018
2 parents 9e85b94 + adb28e0 commit 2d3086a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"socket"
],
"type": "library",
"version": "v0.0.3",
"version": "v0.0.4",
"license": "MIT",
"authors": [
{
Expand Down
8 changes: 7 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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));
```

0 comments on commit 2d3086a

Please sign in to comment.