panelis-php / broadcast
Broadcast notifications (database & mail) to users by role for Panelis.
v1.0.0
2026-08-12 11:11 UTC
Requires
- filament/filament: ^5.0
- illuminate/support: ^13.0
- lorisleiva/laravel-actions: ^2.10
- spatie/laravel-permission: ^6.16
Requires (Dev)
- laravel/pint: ^1.30
README
Broadcast notifications (database & mail) to users by role for Panelis.
Features
- List broadcasts — Filament table with the history of what was sent.
- New broadcast — send a notification (database bell / email) to users by role, or everyone.
- No edit / delete — create once, keep a clean history.
Form fields
- Title — judul notifikasi.
- Recipients — multiple select based on role (empty = all users).
- Type —
info,warning,success,error. - Channel —
database,mail(multi). - Content — Markdown editor (rendered as markdown in the notification view).
- Send at — empty = now, or a future date for scheduling.
Installation
composer require panelis-php/broadcast
Register the scheduler for scheduled broadcasts (in the host app's routes/console.php):
Schedule::command('broadcast:send-scheduled')->everyMinute();
Add Panelis\Broadcast\Panel\Resources\BroadcastResource\Enums\BroadcastPermission::class
to config('permission.enums'), then re-seed permissions from the Permissions page.
Requirements
- PHP 8.3+
- Laravel 13
- Filament 5
- spatie/laravel-permission
License
MIT