Download the PHP package tomatophp/filament-discord-driver without Composer
On this page you can find all versions of the php package tomatophp/filament-discord-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tomatophp/filament-discord-driver
More information about tomatophp/filament-discord-driver
Files in tomatophp/filament-discord-driver
Package filament-discord-driver
Short Description Discord Server WebHook Notification for Filament Alerts Sender
License MIT
Informations about the package filament-discord-driver
Filament Discord Driver
Discord Server WebHook Notification for Filament Alerts Sender
Screenshots
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
All versions of filament-discord-driver with dependencies
filament/filament Version ^3.2
filament/notifications Version ^3.2
tomatophp/console-helpers Version ^1.1
tomatophp/filament-alerts Version ^2.2
mallardduck/blade-boxicons Version ^2.4