zvizvi/filament-notifications-tabs 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zvizvi/filament-notifications-tabs

Composer 安装命令:

composer require zvizvi/filament-notifications-tabs

包简介

Tabs and per-notification actions (delete, toggle read status) for the Filament database notifications modal.

README 文档

README

Filament Relation Manager Repeater

Filament Notifications Tabs

Latest Version on Packagist Total Downloads

Adds tabs and per-notification actions to the Filament database notifications modal:

  • Unread / All tabs — filter the notifications list, with an unread-count badge on the Unread tab.
  • Per-notification actions — replaces the default X (close) button with a delete (trash) button and a toggle read/unread button.

Compatible with Filament v5 panels.

Installation

Install the package via Composer:

composer require zvizvi/filament-notifications-tabs:^0.0.2

Register the styles (Tailwind v4)

The modal view uses Tailwind utility classes, so Tailwind needs to scan this package's Blade files. Add a @source directive to your Filament theme CSS (e.g. resources/css/filament/admin/theme.css), then rebuild:

@source '../../../../vendor/zvizvi/filament-notifications-tabs/resources/views/**/*.blade.php';

Adjust the number of ../ to match the location of your theme file relative to vendor/.

Usage

Register the plugin in your panel provider. Database notifications must be enabled on the panel:

use Zvizvi\FilamentNotificationsTabs\FilamentNotificationsTabsPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->databaseNotifications()
        ->plugins([
            FilamentNotificationsTabsPlugin::make(),
        ]);
}

Default tab

The modal opens on the Unread tab by default. To open on the All tab instead:

FilamentNotificationsTabsPlugin::make()
    ->defaultTab('all')

Confirm before delete

By default, clicking the delete button removes the notification immediately. To require Filament's native confirmation dialog first:

FilamentNotificationsTabsPlugin::make()
    ->confirmDelete()

Translations

The package ships with en and he translations. To customize them:

php artisan vendor:publish --tag=filament-notifications-tabs-translations

Views

To customize the modal view:

php artisan vendor:publish --tag=filament-notifications-tabs-views

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固