Download the PHP package chrisreedio/laravel-scout-keys without Composer
On this page you can find all versions of the php package chrisreedio/laravel-scout-keys. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chrisreedio/laravel-scout-keys
More information about chrisreedio/laravel-scout-keys
Files in chrisreedio/laravel-scout-keys
Package laravel-scout-keys
Short Description Provides user level tenant tokens / scoped search keys.
License MIT
Homepage https://github.com/chrisreedio/laravel-scout-keys
Informations about the package laravel-scout-keys
Laravel Scout User Keys/Tokens
This package provides user level tenant tokens / scoped search keys for Laravel Scout.
The current implementation supports the Meilisearch and Typesense drivers.
TODO
- [ ] Add support for runtime configuration of generated key facets/filtered attributes
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Usage
Add the SearchUser
interface and HasSearchKeys
trait to your User
model(s).
Example:
Finally, add the following to your web.php
routes file:
If you'd like to change the default path of /search/key
, you may pass the desired path as the first argument to the getRoute
method.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Chris Reed
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-scout-keys with dependencies
http-interop/http-factory-guzzle Version ^1.2
illuminate/contracts Version ^10.0||^11.0
laravel/scout Version ^10.11
meilisearch/meilisearch-php Version ^1.10
spatie/laravel-package-tools Version ^1.16
typesense/typesense-php Version ^4.9