Email-like inbox messaging plugin for Filament v5. Add a complete internal messaging system to your admin panel — inbox, sent, starred, trash, threading, forwarding, read receipts, and more.
| Inbox | Thread View |
|---|---|
![]() |
![]() |
| Compose Message | Sent Messages |
|---|---|
![]() |
![]() |
composer require qalainau/filament-inbox
Run the notifications migration (required for Filament database notifications):
php artisan make:notifications-table
php artisan migrate
Add the HasInbox trait to your User model:
use FilamentInbox\Concerns\HasInbox;
class User extends Authenticatable
{
use HasInbox;
}
Register the plugin in your Filament panel. databaseNotifications() is required to enable Filament's notification system:
use FilamentInbox\FilamentInboxPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->databaseNotifications()
->plugin(FilamentInboxPlugin::make());
}
Note:
databaseNotifications()requires thenotificationstable. If you see an error about a missing table, runphp artisan make:notifications-table && php artisan migrate.
Publish the config file:
php artisan vendor:publish --tag=filament-inbox-config
// config/filament-inbox.php
return [
// Custom user model (defaults to auth provider model)
'user_model' => null,
// Custom users table name (auto-detected from model)
'users_table' => null,
// Tenant-users relationship method on tenant model
// Auto-detects 'members' or 'users' if null
'tenant_users_relationship' => null,
];
Filament Inbox works with Filament's built-in tenancy. When tenancy is active:
No additional configuration is needed if your tenant model has a members() or users() relationship.
Listen to messaging events in your EventServiceProvider or with Event::listen():
| Event | Dispatched When |
|---|---|
MessageSent |
A message or reply is sent |
MessageRead |
A message is marked as read |
MessageStarred |
A message is starred or unstarred |
MessageTrashed |
A message is moved to trash |
MessageRestored |
A message is restored from trash |
MessageForwarded |
A message is forwarded |
composer test
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.
How can I help you explore Laravel packages today?