Introduction

Nuxt module for Laravel Echo integration to get a seamless experience with application broadcasting.

Since Laravel Echo requires additional authentication for Private channels, you may consider using this module to get this out-of-the-box.

Nuxt Laravel Echo provides a wrapper on top of laravel-echo and pusher.js packages, that takes care of creating an Echo instance and setting up an authentication handler.

Features

  • Sanctum-based authentication

  • CSRF cookie management for Private and Presence channels

  • CSR-only mode (plugin is not loaded in SSR)

  • TypeScript support

  • Predefined configuration

Note: Before using this module, please ensure you have configured Laravel Echo / Reverb on your backend. You can find more information about it here.

We recommend looking at our breeze-nuxt template that works flawlessly with breeze-api Laravel application with preconfigured Sanctum and Echo modules.

Support

If you like this module, please support the project to help me to maintain and improve it!

Last updated