usamamuneerchaudhary/filament-command-palette 问题修复 & 功能扩展

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

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

usamamuneerchaudhary/filament-command-palette

Composer 安装命令:

composer require usamamuneerchaudhary/filament-command-palette

包简介

A Spotlight/CMD+K style command palette for quick navigation and actions across Filament panels.

README 文档

README

Latest Version on Packagist Scrutinizer Code Quality CodeFactor Build Status Code Intelligence Status Total Downloads Licence

Filament Command Palette

A Spotlight/CMD+K style command palette for quick navigation and actions across Filament panels.

Features

  • Keyboard shortcut: Press Cmd+K (Mac) or Ctrl+K (Windows/Linux) to open
  • Quick navigation: Jump to any page, resource, or navigation item
  • Search: Filter commands by typing
  • Keyboard navigation: Use arrow keys and Enter to select
  • Optional topbar button: Click to open from the topbar

Installation

composer require usamamuneerchaudhary/filament-command-palette

Setup

Register the plugin in your Filament panel provider:

use Usamamuneerchaudhary\CommandPalette\FilamentCommandPalettePlugin;

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

Configuration

Publish the config file (optional):

php artisan vendor:publish --tag=command-palette-config

Options in config/command-palette.php:

  • key_bindings: Keyboard shortcuts (default: ['mod+k'])
  • show_topbar_button: Show optional trigger in topbar (default: true)
  • max_results: Max results per category (default: 10)
  • include_publish_views_command: Show "Publish views" in the command palette (default: true)
  • custom_commands: Array of closures returning CommandItem[] for extensibility

Publishing Views

You can publish the package views to customize the command palette layout, styling, and behavior. Published views go to resources/views/vendor/command-palette/ and can be edited freely.

From the command palette: Open the palette (Cmd+K), search for "Publish views", and select it to open a page with a one-click publish button.

From the terminal:

php artisan command-palette:publish-views

Or using Laravel's vendor publish directly:

php artisan vendor:publish --tag=command-palette-views

Use --force to overwrite existing published views.

Custom Commands

Add custom commands via config:

'custom_commands' => [
    fn () => [
        \Usamamuneerchaudhary\CommandPalette\Support\CommandItem::make(
            'My Action',
            '/my-url',
            'Custom',
        ),
    ],
],

Requirements

  • PHP 8.2+
  • Filament v5
  • Laravel 11 or 12

Screenshots

Screenshot

License

MIT

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固