daltcore/elasticquent
Elasticsearch integration for Laravel's Eloquent models: define indexes and mappings per model, bulk-index records, and run fluent search queries that return hydrated models. A maintained fork of elasticquent with config-driven client setup and artisan helpers.
Architecture fit
ElasticquentTrait / Searchable) that pushes model documents into an Elasticsearch index and hydrates results back into Eloquent models. It presumes Eloquent is the system of record and Elasticsearch is a derived read model — a reasonable fit for a Laravel monolith adding search to existing CRUD models.getIndexName(), getTypeName(), getMapping()). Mapping types were removed in Elasticsearch 6, deprecated through 7, and are gone in 8. This is the single biggest architectural mismatch: the package's mental model is anchored to an ES version line that is end-of-life.Integration feasibility
composer require, add the trait, implement index/type/mapping methods, run the provided artisan commands for index creation and bulk reindex. Low ceremony, no service container gymnastics.elasticsearch/elasticsearch client above 7.x. Budget for patching the fork in-house.Technical risk
_doc endpoint changes, auth/TLS defaults, and client API changes will each require source edits.Key questions
elasticsearch/elasticsearch client versions does this fork target?elasticquent/elasticquent, and is it maintained or a one-off snapshot?Stack fit
elasticsearch/elasticsearch that exposes index(Model), delete(Model), search(Query). Either preserves the "Eloquent is source of truth" property without inheriting a dead type-mapping model.Migration path
SearchService interface on day one, so the trait is an implementation detail and swapping it out later is a config change, not a refactor.items_v1 → items) so reindex and mapping changes are zero-downtime.Compatibility
_type removal, PHP 8 signature and dynamic-property issues, and any hardcoded _search/_mapping endpoint paths.type-level nesting) if targeting a modern cluster.Sequencing
Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?