PHPackages                             ratno/nova-echo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ratno/nova-echo

ActiveLibrary[API Development](/categories/api)

ratno/nova-echo
===============

Adds Laravel Echo with your broadcast configuration to your Laravel Nova app

1.0.0(6y ago)09511MITPHPPHP &gt;=7.1.0

Since Feb 5Pushed 6y agoCompare

[ Source](https://github.com/ratno/nova-echo)[ Packagist](https://packagist.org/packages/ratno/nova-echo)[ RSS](/packages/ratno-nova-echo/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (6)Used By (1)

Nova Echo
=========

[](#nova-echo)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ec0a27b20d5954347c6899021e8edfc05ce35462d4fb73b0d9b1e6bac1efd301/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f726570726f632f6e6f76612d6563686f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/coreproc/nova-echo)[![Quality Score](https://camo.githubusercontent.com/f42b4d77d54555a811433081556b2fb841108714e22f5d16b8b0fb183aaa5bcf/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f636f726570726f632f6e6f76612d6563686f2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/coreproc/nova-echo)[![Total Downloads](https://camo.githubusercontent.com/b25ef0d3e109aeb9b4226be47b86c95ff51d95c1c1f673f16ad85c7ad1bf5b9b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f726570726f632f6e6f76612d6563686f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/coreproc/nova-echo)

Adds Laravel Echo with your broadcast configuration to your Laravel Nova app.

Installation
------------

[](#installation)

By using Nova Echo, we have a readily configured Laravel Echo instance in our JS.

Here are suggested options for broadcasting/receiving using websockets:

- [Pusher](https://pusher.com)
- [Laravel Websockets](https://docs.beyondco.de/laravel-websockets/)
- [Laravel Echo Server](https://github.com/tlaverdure/laravel-echo-server)

You can find instructions about setting up broadcasting in Laravel using the [official documentation](https://laravel.com/docs/5.7/broadcasting).

Once you have this set up in your Nova app, you can install this package via composer

```
composer require coreproc/nova-echo
```

You will then need to override Nova's `layout.blade.php`. Create a layout file `resources/views/vendor/nova/layout.blade.php` and copy the contents from `vendor/laravel/nova/resources/views/layout.blade.php`.

Include Nova Echo's blade file in the Nova layout. This blade file contains `meta` tags with your broadcast configuration.

```
// file: resources/views/vendor/nova/layout.blade.php

DOCTYPE html>

  @include('nova-echo::meta')

  ...

```

Usage
-----

[](#usage)

Nova Echo instantiates `Echo` and makes it available throughout your Nova app. You can access your `Echo` object through

```
window.Echo
```

By default, this `Echo` instance already subscribes to the logged in user's private channel, which by default would be the namespace of your app's user object, ie. `App.User.{id}`.

You can access and attach listeners to this user's private channel through

```
window.userPrivateChannel
```

To authenticate the user through this channel, make sure you have your `BroadcastServiceProvider` available with `Broadcast::routes()` declared. You'll also need to define access through your `route/channels.php` file, ie:

```
// file: routes/channels.php

Broadcast::channel('App.User.{id}', function ($user, $id) {
    return (int)$user->id === (int)$id;
});
```

You can override the `receivesBroadcastNotificationsOn` to use a different channel name.

```
class User extends Authenticatable
{
    use Notifiable;

    ...

    /**
     * The channels the user receives notification broadcasts on.
     *
     * @return string
     */
    public function receivesBroadcastNotificationsOn()
    {
        return 'users.' . $this->id;
    }
}
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Chris Bautista](https://github.com/chrisbjr)

About CoreProc
--------------

[](#about-coreproc)

CoreProc is a software development company that provides software development services to startups, digital/ad agencies, and enterprises.

Learn more about us on our [website](https://coreproc.com).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~113 days

Total

5

Last Release

2242d ago

Major Versions

0.2.0 → 1.0.02020-05-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/12c1fc271c31db3cbc7a3f1afb14c5b3db1d56ed508375fd6bc70ec8a461afa2?d=identicon)[ratno](/maintainers/ratno)

---

Top Contributors

[![chrisbjr](https://avatars.githubusercontent.com/u/571279?v=4)](https://github.com/chrisbjr "chrisbjr (11 commits)")[![Naoray](https://avatars.githubusercontent.com/u/10154100?v=4)](https://github.com/Naoray "Naoray (1 commits)")[![ratno](https://avatars.githubusercontent.com/u/570893?v=4)](https://github.com/ratno "ratno (1 commits)")[![shalawani](https://avatars.githubusercontent.com/u/7045417?v=4)](https://github.com/shalawani "shalawani (1 commits)")

---

Tags

laravelreal-timeWebSocketsechoBroadcastingnovasocket-io

### Embed Badge

![Health badge](/badges/ratno-nova-echo/health.svg)

```
[![Health](https://phpackages.com/badges/ratno-nova-echo/health.svg)](https://phpackages.com/packages/ratno-nova-echo)
```

###  Alternatives

[coreproc/nova-echo

Adds Laravel Echo with your broadcast configuration to your Laravel Nova app

1997.8k2](/packages/coreproc-nova-echo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
