Nuxt - Laravel Echo
GitHubNuxt Module
  • Getting Started
    • Introduction
    • Installation
  • Usage
    • Configuration
    • Cookie Authentication
    • Token Authentication
  • Composables
    • useEcho
    • useEchoConfig
    • useEchoAppConfig
  • Other
    • Token Storage
    • Interceptors
    • Breeze Nuxt template
Powered by GitBook
On this page
  1. Composables

useEchoAppConfig

Accessing the bundled Echo configuration from your Nuxt app.

This composable provides quick access to app configuration under the echo key instead of calling useAppConfig().echo. It is used as a part of the module implementation, so there is no particular need to use this composable in your application.

Here is an example of the call:

SomeService.ts
const echoAppConfig = useEchoAppConfig()

// sets the Bearer token value to the storage
echoConfig.tokenStorage.set('auth_token_value')
PrevioususeEchoConfigNextToken Storage

Last updated 4 months ago