> For the complete documentation index, see [llms.txt](https://moataz-salahs-organization.gitbook.io/chatter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://moataz-salahs-organization.gitbook.io/chatter/project-structure/pusher-settings.md).

# Pusher settings

Integrating <mark style="color:blue;">real-time</mark> functionality into your Laravel application can be challenging, and many users find themselves confused when setting up Pusher. This section aims to simplify the process and guide you through the essential steps to seamlessly integrate <mark style="color:blue;">Pusher</mark> into your Laravel app. &#x20;

<figure><img src="https://gitbookio.github.io/onboarding-template-images/markdown-hero.png" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">Feel free</mark> to test it out and copy the Markdown below by hovering over the code block in the upper right, and pasting it into your terminal if it is a command.

```
1- run command "php artisan install:broadcasting"
```

{% hint style="info" %}
If you have multiple files, GitBook makes it easy to import full repositories too — allowing you to keep your GitBook content in sync.
{% endhint %}

{% code overflow="wrap" %}

```
2- sign up to pusher and use your credentials(app ID,key,secret and cluster) in your `.env` file
```

{% endcode %}

{% code overflow="wrap" %}

```
3-update resources/js/echo.js from reverb to pusher configuration to be like the following image.
```

{% endcode %}

<figure><img src="/files/0OM3U4tlwcQxLr8TPsW9" alt=""><figcaption><p>resources/js/echo.js</p></figcaption></figure>

<mark style="color:blue;">Finally,</mark> change ``BROADCAST_CONNECTION in your env to `pusher` as follows:``

<figure><img src="/files/GMXDJFOiU0SQZzHiArT8" alt="" width="375"><figcaption><p>in your `.env` file</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://moataz-salahs-organization.gitbook.io/chatter/project-structure/pusher-settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
