muhammad-nawlo / filament-scout-manager
A comprehensive Filament plugin for managing Laravel Scout indexes and search settings
Fund package maintenance!
Muhammad-Nawlo
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
pkg:composer/muhammad-nawlo/filament-scout-manager
Requires
- php: ^8.2
- filament/filament: ^5.0
- laravel/scout: ^10.24
- spatie/laravel-package-tools: ^1.15.0
- spatie/laravel-settings: ^3.7
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.0
- nunomaduro/collision: ^8.0
- orchestra/testbench: ^9.0|^10.0
- pestphp/pest: ^3.7|^4.0
- pestphp/pest-plugin-arch: ^3.0|^4.0
- pestphp/pest-plugin-laravel: ^3.0|^4.0
- pestphp/pest-plugin-livewire: ^3.0|^4.0
- rector/rector: ^2.0
- spatie/laravel-ray: ^1.26
- dev-main
- v1.1.11
- v1.1.10
- v1.1.9
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.0
- v1.0.1
- v1.0.0
- dev-codex/fix-table-not-found-error-in-searchablemodelresource
- dev-codex/fix-unknown-column-error-in-search-logs
- dev-codex/add-statsoverview-widgets
- dev-codex/fix-return-type-in-geteloquentquery
- dev-codex/add-multilingual-support-for-arabic-and-english
- dev-codex/add-filament-widget-view
- dev-codex/fix-undefined-array-key-in-popular-searches-view
- dev-codex/fix-test-failures-in-searchquerylogresourcetest
This package is auto-updated.
Last update: 2026-02-21 23:20:11 UTC
README
A Filament plugin to manage your Laravel Scout search setup from an admin panel.
Features
- Discover Scout-searchable models and inspect index/engine metadata.
- Run index actions (import, flush, refresh) per model or in bulk.
- View index health and popular searches with dashboard widgets.
- Log user search queries for analysis.
- Manage search synonyms in the panel.
- Configure behavior with package config/settings.
Requirements
- PHP 8.2+
- Laravel app with Laravel Scout configured
- Filament 5 panel
Installation
Install the package:
composer require muhammad-nawlo/filament-scout-manager
Run the installer:
php artisan filament-scout-manager:install
Or manually publish package files:
php artisan vendor:publish --tag="filament-scout-manager-config" php artisan vendor:publish --tag="filament-scout-manager-migrations" php artisan migrate
If you use a custom Filament theme, add the package views as a Tailwind source:
@source '../../../../vendor/muhammad-nawlo/filament-scout-manager/resources/**/*.blade.php';
Register the plugin
In your Filament panel provider, register the plugin:
use MuhammadNawlo\FilamentScoutManager\FilamentScoutManagerPlugin; public function panel(Panel $panel): Panel { return $panel // ... ->plugins([ FilamentScoutManagerPlugin::make(), ]); }
Configuration
Published config: config/filament-scout-manager.php
return [ 'log_searches' => true, 'log_retention_days' => 30, 'enable_synonyms' => true, 'models' => [ // 'App\\Other\\Model' => [], ], ];
Usage notes
- Ensure each model you want indexed uses Scout's
Searchabletrait. - Configure your Scout driver (
SCOUT_DRIVER) and engine credentials in.env. - The "Searchable Fields" options in the panel are most useful when your model defines a custom
toSearchableArray().
Testing
composer test
Changelog
Please see CHANGELOG for recent updates.
Contributing
Please see CONTRIBUTING for details.
Security
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see LICENSE for details.