跳到主要内容
版本:Next

Rendering notifications outside of a panel

NOTE

Before proceeding, make sure filament/notifications is installed in your project. You can check by running:

composer show filament/notifications

If it's not installed, consult the installation guide and configure the individual components according to the instructions.

Introduction​

To render notifications in your app, make sure the notifications Livewire component is rendered in your layout:

<div>
@livewire('notifications')
</div>

Now, when sending a notification from a Livewire request, it will appear for the user.