stafe-group-ab/filament-bookmarks-menu
Composer 安装命令:
composer require stafe-group-ab/filament-bookmarks-menu
包简介
This plugin let's you add a global bookmarks menu for users in Filament Admin
关键字:
README 文档
README
This Filament Plugin will add a bookmarks menu to your Filament Admin application. You can setup global items in this menu or let users add their own items. The plugin will render an add & remove bookmark icon on top of all pages where you want it.
Installation
You can install the package via composer:
composer require stafe-group-ab/filament-bookmarks-menu
You can publish and run the migrations with:
php artisan vendor:publish --tag="filament-bookmarks-menu-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="filament-bookmarks-menu-config"
This is the contents of the published config file, here you can alter icons, colors and more with ease.
return [ 'bookmark_icon' => 'heroicon-o-bookmark', 'bookmark_class' => 'w-5 h-5 cursor-pointer text-gray-700 dark:text-gray-200', 'add_bookmark_icon' => 'heroicon-o-bookmark', 'remove_bookmark_icon' => 'heroicon-s-bookmark', 'add_bookmark_class' => 'w-6 h-6 cursor-pointer text-danger-700 dark:text-gray-200', 'remove_bookmark_class' => 'w-6 h-6 cursor-pointer text-danger-700 dark:text-gray-200', 'add_bookmarks_by_users' => true, 'exclude_pages' => ['admin', 'bookmarks-menus'], 'notification_add_icon' => 'heroicon-o-bookmark', 'notification_remove_icon' => 'heroicon-o-bookmark', 'notification_add_color' => 'success', 'notification_remove_color' => 'danger', 'show_resource_in_navigation' => false, 'delete_icon' => 'heroicon-o-trash', 'delete_class' => 'w-5 h-5 cursor-pointer text-danger-700 dark:text-gray-200', 'delete_text_class' => 'cursor-pointer text-white bg-black dark:text-gray-200', 'show_private_label_in_menu' => false, 'show_global_label_in_menu' => false, ];
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-bookmarks-menu-views"
Optionally, you can publish the translation files, we will ship in English only
php artisan vendor:publish --tag="filament-bookmarks-menu-translations"
Usage
To offer your logged in users the ability to add favorites to their personal bookmarks menu make sure you go to the config file and set the below. That will make the plugin render the add / remove bookmark icon feature on all pages.
'add_bookmarks_by_users' => true,
Delete items in the menu
Now your users will see a svg trash icon next to all their private menu items. You can config this icon and colors in the config file. You can also set the label in the updated lang files.
'delete_icon' => 'heroicon-o-trash', 'delete_class' => 'w-5 h-5 cursor-pointer text-danger-700 dark:text-gray-200', 'delete_text_class' => 'cursor-pointer text-white bg-black dark:text-gray-200',
Displaying labels in the bookmarks menu?
Now you can enable / disable the Global & Private labels in the Bookmarks Menu in the config file.
'show_private_label_in_menu' => false, 'show_global_label_in_menu' => false,
Excluding pages
In almost all cases there will be pages that you want to exclude from this plugin. There is an array in the config file where you can add the exclusions you want. It will exclude in the ending string in all urls in your Filament Admin. So if you exclude edit below no edit pages will be available in the plugin.
'exclude_pages' => ['admin', 'bookmarks-menus'],
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
stafe-group-ab/filament-bookmarks-menu 适用场景与选型建议
stafe-group-ab/filament-bookmarks-menu 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.14k 次下载、GitHub Stars 达 24, 最近一次更新时间为 2022 年 12 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Favorites」 「bookmarks」 「filament」 「STAFE-GROUP-AB」 「filament admin」 「filament plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 stafe-group-ab/filament-bookmarks-menu 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 stafe-group-ab/filament-bookmarks-menu 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 stafe-group-ab/filament-bookmarks-menu 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Manage your users' wishes in a Laravel app
A CakePHP plugin for managing user favorites, bookmarks and wishlists
delia is a bookmark manager for your filament resources
Manage user favorites in laravel application.
A TYPO3 extension that provides bookmarks functionality of local pages.
Bookmarks storage module
统计信息
- 总下载量: 3.14k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 24
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-07

