Laravel Scout · Auto Re-index · Relations
Laravel Scout Relations
Keep related Laravel Scout search indexes fresh automatically.
Latest release
1.0.2
Requires
PHP ^8.4
Laravel
12.x / 13.x
Licence
MIT
$ composer require foxws/laravel-scout-relations
Introduction
This package keeps your Laravel Scout search index up to date automatically.
When you save or delete a model, this package can also re-index its related
models — the ones connected to it through an Eloquent relationship. For
example, if you save an Author, this package automatically queues that
author's Post records for re-indexing. You don't need to write any extra
code to keep the two in sync.
Requirements
- PHP 8.4+
- Laravel 12+
- Laravel Scout
Continue to Installation to get started.
