filament-discord-driver
Discord Server WebHook Notification for Filament Alerts Sender
يمتدّ من filament-discord
composer require tomatophp/filament-discord-driverاقرأني

Filament Discord Driver
Discord Server WebHook Notification for Filament Alerts Sender
Screenshots
| Light | Dark |
|---|---|
![]() | ![]() |
![]() | ![]() |
![]() | ![]() |
Requirements
| Package version | Filament | Laravel | PHP |
|---|---|---|---|
| 5.x | 5.x | 12.x, 13.x | 8.2+ |
| 4.x | 4.x | 11.x, 12.x | 8.2+ |
Installation
after install your package please run this command
finally register the plugin on /app/Providers/Filament/AdminPanelProvider.php
Usage
to set up any model to get notifications you
Queue
the notification is run on queue, so you must run the queue worker to send the notifications
Use Filament Native Notification
you can use the filament native notification and we add some macro for you
Notification Service
to create a new template you can use template CRUD and make sure that the template key is unique because you will use it on every single notification.
Send Notification
to send a notification you must use our helper SendNotification::class like
where $template is selected of the template by key or id, and title, body use to select and replace string on the template with custom data
Notification Channels
it can be working with direct user methods like
Allow Discord Error Logger
you can use Discord channel as an error logger to log and followup your error with a very easy way, on your bootstrap/app.php add this class like this
make sure you allow the Discord Error Log on the Discord Settings Page
Publish Assets
you can publish config file by use this command
you can publish languages file by use this command
Testing
if you like to run PEST testing just use this command
Code Style
if you like to fix the code style just use this command
PHPStan
if you like to check the code by PHPStan just use this command
Other Filament Packages
Checkout our Awesome TomatoPHP





