Foxws
Laravel Scout · Auto Re-index · Relations
Laravel Scout Relations

Keep related Laravel Scout search indexes fresh automatically.

Latest release
1.0.1
Requires
PHP ^8.4
Laravel
12.x / 13.x
Licence
MIT
$ composer require foxws/laravel-scout-relations
Get started Source ↗

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

Continue to Installation to get started.