jeremykenedy/filament-spotlight-2

Spotlight for Filament Admin
2,849 2
Install
composer require jeremykenedy/filament-spotlight-2
Latest Version:v2.0.1
PHP:^8.0
License:MIT
Last Updated:Mar 28, 2024
Links: GitHub  ·  Packagist
Maintainer: jeremykenedy

header

Filament Spotlight

Latest Version on Packagist Software License GitHub Workflow Status Total Downloads

Quickly navigate your Filament Resources with Spotlight functionality.

Supports pages, resources and links from the user menu.

https://user-images.githubusercontent.com/22632550/159757479-ca9c3f46-7638-4889-98ba-6164e5205509.mp4

Installation via Composer

Requires PHP > 8.0 and Filament > 2.10.34

composer require jeremykenedy/filament-spotlight

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

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-spotlight directory, create a branch for your fix, e.g. fix/error-message.

Install the packages in your app's composer.json:

"require": {
    "jeremykenedy/filament-spotlight": "dev-fix/error-message as main-dev",
},
"repositories": [
    {
        "type": "path",
        "url": "filament-spotlight"
    }
]

Now, run composer update.

Credits

Related Packages

pxlrbt/filament-excel

Supercharged Excel exports for Filament Resources

3,096,322 459
pxlrbt/filament-environment-indicator

Indicator for the current environment inside Filament

1,573,640 153
pxlrbt/filament-activity-log

Spatie's Laravel Activity Log integrated into Filament

945,225 232
inerba/filament-db-config

A Filament plugin for database-backed application settings and editable content,...

20,748 37

Version History

Version Released PHP License
v2.0.1 ^8.0 MIT
v2.0.0 ^8.0 MIT