Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Indice Laravel Package

rap2hpoutre/indice

Indice is a lightweight Laravel package for adding simple searchable indexes to Eloquent models. Index selected fields, keep them in sync, and run database-backed searches without an external search engine. Ideal for small apps that need basic search without Scout or Elasticsearch.

View on GitHub
Deep Wiki
Context7

Hints for Laravel errors

Frequently asked questions about Indice
What is rap2hpoutre/indice used for in Laravel?
Indice is a lightweight Laravel package for adding simple searchable indexes to Eloquent models. It is designed for database-backed searches without an external search engine such as Elasticsearch or Algolia. It fits small apps and utilities that need a clear, minimal API rather than a full search platform.
How do I install Indice in a Laravel application?
Install it with Composer using composer require rap2hpoutre/indice. The package is designed for minimal setup and low overhead, so there is little configuration to manage. Check the README for any publish, migration, or setup steps that apply to your version.
Does Indice require Laravel Scout or Elasticsearch?
No, Indice is intended for simple database-backed search without requiring Scout, Elasticsearch, or another external search engine. That makes it suitable for small applications that need basic searchable indexes. If you need advanced relevance tuning, faceting, or large-scale distributed search, a dedicated search engine may be a better fit.
Which Laravel and PHP versions does rap2hpoutre/indice support?
The package is described as Laravel-friendly, but the exact Laravel and PHP version constraints are defined by the package's composer.json and README. Check those before installing to confirm compatibility with your application. Because it is lightweight, it is usually straightforward to review if you need to verify support.
How does Indice keep searchable indexes in sync with Eloquent models?
Indice is intended to keep selected indexed fields in sync as your Eloquent models change, so searches reflect current data. The precise sync behavior depends on the package configuration and version, so review the README and source for model events, manual refreshes, or other triggers. Since the package is small, its sync logic should be easy to inspect and extend.
Is Indice suitable for production use?
Indice can be suitable for production in small applications that need simple database-backed search and minimal overhead. Before deploying, test index synchronization, query performance, and recovery or rebuild behavior with realistic data. For high-volume or complex search requirements, consider a dedicated search service instead.
What are good alternatives to Indice for Laravel search?
Alternatives include Laravel Scout with drivers such as TNTSearch, Meilisearch, Algolia, or Elasticsearch, as well as native database full-text search features. Indice is aimed at simpler cases where you want a small, focused API and no external search engine. Choose based on your relevance needs, data size, and operational constraints.
How should I test search functionality when using Indice?
Use Laravel's testing tools with a test database, create or update models so their indexes are populated, and assert that search queries return the expected records. Because Indice is lightweight, you can also inspect its source to understand exactly how indexes are stored and queried. Keep tests focused on synchronization and result accuracy.
Can Indice index multiple fields or multiple Eloquent models?
Indice is designed for defining and using indexes on selected fields, and it can be adopted across models according to its documented API. The package keeps its surface area small, so complex multi-model or high-volume indexing may require custom code. Review the README and source for the supported configuration patterns.
Is rap2hpoutre/indice actively maintained and safe to depend on?
Check the GitHub repository for recent commits, releases, open issues, and the Composer version constraints before adding it to a project. Because the package is small, you can review the implementation quickly and pin a known-good version. For critical production systems, confirm maintenance status and test upgrades in your application.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager