素材/kurban/丝材-复活节

丝材复活节彩蛋插件 🥚

1.0.2 2024-07-27 06:11 UTC

This package is auto-updated.

Last update: 2024-09-27 06:32:57 UTC


README

Filament Easter 🥚

此包为 Filament 面板提供简单的 复活节彩蛋模态框

⚡️ 使用 Composer 安装

composer require kurban/filament-easter

🔥 在你的 PanelProvider 中面板()方法的插件数组中添加此插件 panel()

    FilamentEasterPlugin::make()
        ->keys(['ArrowUp', 'ArrowUp', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowLeft', 'ArrowRight', 'b', 'a'])
        ->backgroundImage('https://m.media-amazon.com/images/I/A13qABV+icL.png')
        ->modalContent([
            'title' => 'Easter Cat Found! 🐱',
            'content' => 'Congratulations! You\'ve discovered the hidden Easter Cat. Meow!',
            'footer' => 'Share this secret with fellow cat lovers!'
        ]),

🚀 根据需要自定义

keys(): Set the key sequence to trigger the Easter egg.
backgroundImage(): Set the background image URL for the modal.
modalContent(): Set the content of the modal, including title, content, and footer.

✅ 支持:如果您发现任何问题或有疑问,请创建一个问题。

丝材复活节 🥚 是为了娱乐而创建的