Spotlight
FeaturedQuickly navigate your Filament Resources with Spotlight functionality.
Author:
Dennis Koch
Documentation

Quickly navigate your Filament Resources with Spotlight functionality.
Supports pages, resources and links from the user menu.
#Go Pro!
Spotlight Pro is built from the ground up and features a beautiful design that integrates seamlessly with Filament in both light and dark modes. It offers the same easy registration as the default version, along with enhanced control. Learn more at: https://filament.pxlrbt.de/spotlight-pro/
#Installation
| Plugin Version | Filament Version | PHP Version |
|---|---|---|
| 0.x | 2.x | > 8.0 |
| 1.x | 3.x | > 8.1 |
| 2.x | 3.x, 4.x | > 8.1 |
composer require pxlrbt/filament-spotlight
#Upgrade guide for Filament v4
From v2 onwards you will need a Custom Theme to include the Tailwind classes for the Spotlight component. See note below.
#Styles
To include the Tailwind classes that are used in the Spotlight component, you need to create a Custom Theme and include the following line:
@source '../../../../vendor/wire-elements/**/*.blade.php';
#Plugin registration
To use this plugin register it in your panel configuration:
use pxlrbt\FilamentSpotlight\SpotlightPlugin;
$panel
->plugins([
SpotlightPlugin::make(),
]);
#Usage
There is no configuration needed.
"its genius"
– Dan Harrin
To open the Spotlight input bar you can use one of the following shortcuts:
CTRL + K CMD + K CTRL + / CMD + /
#Setup
This plugin relies on the same properties and methods used for Filament's global search. For records showing up with the correct name in "Edit/View" you need to set $recordTitleAttribute. Check the docs for more information
#Excluding pages
If you need to exclude a page from the spotlight results you may do so by adding a static shouldRegisterSpotlight method to the page and return false:
public static function shouldRegisterSpotlight(): bool
{
return false;
}
This can be useful when you have pages that require URL parameters.
#Translation
To translate or edit the default placeholder, you have to publish the translation file for wire-element/spotlight:
php artisan vendor:publish --tag=livewire-ui-spotlight-translations
#Contributing
If you want to contribute to this packages, you may want to test it in a real Filament project:
- Fork this repository to your GitHub account.
- Create a Filament app locally.
- Clone your fork in your Filament app's root directory.
- In the
/filament-spotlightdirectory, create a branch for your fix, e.g.fix/error-message.
Install the packages in your app's composer.json:
"require": {
"pxlrbt/filament-spotlight": "dev-fix/error-message as main-dev",
},
"repositories": [
{
"type": "path",
"url": "filament-spotlight"
}
]
Now, run composer update.
#Credits
The author
Dennis, a Filament core-team member, is dedicated to delivering high-quality plugins for your Filament projects. He is a freelance full-stack developer who works on several Laravel projects either individually or as part of small teams. In his work, he utilizes both Livewire and Inertia.
From the same author
Translate Action
Translate your forms content with the click of a button.
Author:
Dennis Koch
Favicon
Easiest way to add favicons to your table and schemas
Author:
Dennis Koch
Activity Log
Add a Filament page that nicely shows your spatie/laravel-activitylog.
Author:
Dennis Koch
Spotlight Pro
Browse your Filament Panel with ease. Filament Spotlight Pro adds a Spotlight/Raycast like Command Palette to your Filament Panel.
Author:
Dennis Koch
Featured Plugins
A selection of plugins curated by the Filament team
Custom Dashboards
Let your users build and share their own dashboards with a drag-and-drop interface. Define your data sources in PHP and let them do the rest.
Filament
Data Lens
Advanced Data Visualization for Laravel Filament - a premium reporting solution enabling custom column creation, sophisticated filtering, and enterprise-grade data insights within admin panels.
Padmission
Advanced Tables (formerly Filter Sets)
Supercharge your tables with powerful features like user-customizable views, quick filters, multi-column sorting, advanced table searching, convenient view management, and more. Compatible with Resource Panel Tables, Relation Managers, Table Widgets, and Table Builder!
Kenneth Sese