跳到主要内容
版本:Next

Notifications

Overview

The Panel Builder uses the Notifications package to send messages to users. Please read the documentation to discover how to send notifications easily.

If you'd like to receive database notifications, you can enable them in the configuration:

use Filament\Panel;

public function panel(Panel $panel): Panel
{
return $panel
// ...
->databaseNotifications();
}

You may also control database notification polling:

use Filament\Panel;

public function panel(Panel $panel): Panel
{
return $panel
// ...
->databaseNotifications()
->databaseNotificationsPolling('30s');
}