Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Command Palette Laravel Package

usamamuneerchaudhary/filament-command-palette

View on GitHub
Deep Wiki
Context7

Filament Command Palette

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)
  • template: Visual layout — standard (default), groups, or preview
  • templates: Per-template empty-state and no-results copy
  • include_publish_views_command: Show "Publish views" in the command palette (default: true)
  • custom_commands: Array of closures returning CommandItem[] for extensibility

Templates

Choose a layout via config:

'template' => 'standard', // or 'groups' | 'preview'
Template Description
standard Compact Filament-styled modal with grouped results
groups Wider empty-state defaults, distinct group headers, indigo selection
preview Split list + detail preview pane on hover/keyboard selection

Standard

standard.png

Groups

groups.png

Preview

preview.png

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/ (including livewire/templates/ for each layout) 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',
        ),
    ],
],

For the preview template, you can attach optional metadata:

\Usamamuneerchaudhary\CommandPalette\Support\CommandItem::make('Edit User', '/admin/users/1/edit')
    ->group('Users')
    ->description('Administration')
    ->preview(['Email' => 'user@example.com', 'Role' => 'Admin']),

When description / preview are omitted, the preview pane falls back to the command group and URL.

Requirements

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

Screenshots

License

MIT

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata