devletes/filament-pinnable-navigation
Composer 安装命令:
composer require devletes/filament-pinnable-navigation
包简介
Pinnable navigation support for Filament 5 panels.
README 文档
README
Allow users to dynamically pin sidebar navigation items to a pinned group.
Requirements
- PHP
^8.2 - Filament
^5.0
Installation
composer require devletes/filament-pinnable-navigation
Register the plugin on any panel:
use Devletes\FilamentPinnableNavigation\PinnableNavigationPlugin; use Filament\Panel; public function panel(Panel $panel): Panel { return $panel ->default() ->id('admin') ->path('admin') ->plugin(PinnableNavigationPlugin::make()); }
Configuration
Publish the config file if you want to customize behavior:
php artisan vendor:publish --tag="pinnable-navigation-config"
Default configuration:
return [ 'database_enabled' => false, 'table_name' => 'pinned_navigation_items', 'model' => \Devletes\FilamentPinnableNavigation\Models\PinnableNavigationPin::class, 'group_title' => 'Pinned', 'group_icon' => 'heroicon-o-star', 'pin_icon' => 'heroicon-o-star', 'unpin_icon' => 'heroicon-s-star', 'show_in_resource' => true, 'accordion_mode' => true, ];
Configuration options:
database_enabled: Persist pins in the database instead of browser localStorage.table_name: Database table used when database persistence is enabled.model: Eloquent model used to store pins. Point it at your own class extendingPinnableNavigationPinto customize storage.group_title: Label used for the synthetic pinned group.group_icon: Optional icon shown for the pinned group.pin_icon: Icon used when an item is not pinned.unpin_icon: Icon used when an item is already pinned.show_in_resource: Show the page-header pin toggle on Filament resource index pages.accordion_mode: Keep only one managed navigation group open at a time. Disable it to fall back to Filament's default grouped navigation behavior.
Persistence
By default, pin state is stored in browser localStorage per panel and authenticated user. No migration is required in this mode.
If you want to persist pins in the database instead:
- Publish the config file.
- Publish the package migrations.
- Set
database_enabledtotrue. - Run migrations.
php artisan vendor:publish --tag="pinnable-navigation-migrations"
php artisan migrate
Usage
- Grouped navigation items can be pinned from the sidebar.
- When
show_in_resourceis enabled, the current resource page can also be pinned or unpinned from the page header. - Pinned items are shown in a dedicated group at the top of the sidebar.
Screenshots
Pin navigation items from the sidebar
Dedicated pinned group
Multiple pinned items
Need something custom?
We build production Filament panels and plugins for teams that want to ship fast without compromising on polish. If you need a custom feature, an extended variant of this package, or a fully bespoke component built for your stack, we can help.
- Browse the rest of our Filament work: filament.devletes.com
- Get in touch: salman@devletes.com
Typical engagements: new Filament plugins, custom resources/widgets/actions, theme + UX work, integrations with your existing services, and one-off tailored forks of our open-source packages.
Credits
License
MIT. See LICENSE.md.
devletes/filament-pinnable-navigation 适用场景与选型建议
devletes/filament-pinnable-navigation 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.82k 次下载、GitHub Stars 达 12, 最近一次更新时间为 2026 年 03 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「plugin」 「navigation」 「laravel」 「filament」 「filament-plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 devletes/filament-pinnable-navigation 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 devletes/filament-pinnable-navigation 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 devletes/filament-pinnable-navigation 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
A block to display a list of links to child pages, or pages in current level
Laravel Menu management
Plugin for YOURLS. Default tools to use in some laemmi plugins
Alfabank REST API integration
Create simple top navigation for laravel
统计信息
- 总下载量: 1.82k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-18


