> ## Documentation Index
> Fetch the complete documentation index at: https://filament-34a8cf01.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Notifications

> [!WARNING]
>
> You are currently viewing the documentation for Filament 2.x, which is a previous version of Filament.
>
> Looking for the current stable version? Visit the [5.x documentation](https://filament-34a8cf01.mintlify.site/5.x).

## Sending notifications

The admin panel uses the [Notifications](https://filament-34a8cf01.mintlify.site/2.x/notifications/sending-notifications.md) package to send messages to users.

Please read the [documentation](https://filament-34a8cf01.mintlify.site/2.x/notifications/sending-notifications.md) to discover how to send notifications easily.

However, there are a few differences in configuration when using the admin panel.

## Database notifications

Instead of enabling database notifications inside the notifications package, you must enable it for the admin panel specifically.

First, you must [publish the configuration file](https://filament-34a8cf01.mintlify.site/2.x/admin/installation.md#publishing-configuration) for the admin panel.

Now, enable database notifications:

```php theme={"theme":"gruvbox-dark-hard"}
'database_notifications' => [
    'enabled' => true,
    // ...
],
```

You may also control [polling](https://filament-34a8cf01.mintlify.site/2.x/notifications/database-notifications.md#polling):

```php theme={"theme":"gruvbox-dark-hard"}
'database' => [
    'enabled' => true,
    'polling_interval' => '30s',
    // ...
],
```

## Echo

Some features of the notifications package, including [receiving real-time database notifications](https://filament-34a8cf01.mintlify.site/2.x/notifications/database-notifications.md#echo) and [broadcast notifications](https://filament-34a8cf01.mintlify.site/2.x/notifications/broadcast-notifications.md), require Laravel Echo to be installed.

Firstly, you must set up a [server-side websockets integration](https://laravel.com/docs/broadcasting#server-side-installation) like Pusher.

Then, define your Echo configuration within the admin panel [configuration file](https://filament-34a8cf01.mintlify.site/2.x/admin/installation.md#publishing-configuration):

```php theme={"theme":"gruvbox-dark-hard"}
'broadcasting' => [

    'echo' => [
        'broadcaster' => 'pusher',
        'key' => env('VITE_PUSHER_APP_KEY'),
        'cluster' => env('VITE_PUSHER_APP_CLUSTER'),
        'forceTLS' => true,
    ],
    
],
```

[Edit this page on GitHub](https://github.com/filamentphp/filament/edit/2.x/packages/admin/docs/07-notifications.md)

## Sponsored by

[Your logo here](https://github.com/sponsors/danharrin)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.