定制 paulmercs/filament-sileo-notifications 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

paulmercs/filament-sileo-notifications

最新稳定版本:v1.0.6

Composer 安装命令:

composer require paulmercs/filament-sileo-notifications

包简介

Sileo toast bridge for Filament notifications with optional global generic action messages.

README 文档

README

Use Sileo-style toasts in Filament v5, and optionally apply generic global notification messages for create/edit/delete actions.

Features

  • Replaces default Filament toast UI with Sileo-style toast output
  • Works with server-rendered Filament notifications and JS-dispatched notifications
  • Global generic title + body messages for:
    • CreateAction
    • EditAction
    • DeleteAction
  • Configurable message content

Requirements

  • PHP ^8.2
  • Laravel ^12
  • Filament ^5

Installation

composer require paulmercs/filament-sileo-notifications:^1.0

Register The Plugin

In your panel provider (example: app/Providers/Filament/AdminPanelProvider.php):

use Paulmercs\FilamentSileoNotifications\FilamentSileoNotificationsPlugin;

return $panel
    // ...
    ->plugin(FilamentSileoNotificationsPlugin::make());

Publish Config (Optional)

php artisan vendor:publish --tag=filament-sileo-notifications-config

Published file:

config/filament-sileo-notifications.php

Publish Filament Assets

php artisan filament:assets

Configuration

return [
    'override_action_notifications' => true,

    'messages' => [
        'create' => [
            'title' => 'Record created successfully',
            'body' => 'The record has been created and saved. You can now review or update the details anytime.',
        ],
        'edit' => [
            'title' => 'Changes saved successfully',
            'body' => 'Your updates were saved successfully and are now reflected across the system.',
        ],
        'delete' => [
            'title' => 'Record deleted successfully',
            'body' => 'The selected record has been deleted and removed from the current dataset.',
        ],
    ],
];

Recommended After Install/Update

php artisan optimize:clear
php artisan filament:assets

Then hard refresh the browser (Ctrl + F5).

Troubleshooting

  • If no notification appears, check browser console for JS errors and run:
    • php artisan filament:assets
  • If default Filament toast still appears, ensure plugin is registered in the active panel provider.
  • If config changes are not reflected:
    • php artisan config:clear
    • php artisan optimize:clear

License

MIT

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固