mri/scout-plus 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mri/scout-plus

最新稳定版本:v1.0.0

Composer 安装命令:

composer require mri/scout-plus

包简介

This package adds enhanced functionalities to the Laravel Scout package.

README 文档

README

Introduction

Scout Plus is a laravel package based on Laravel Scout package.

Laravel Scout currently provides limited supports to the popular search engines: Algolia & Meilisearch.

The objective of this package is to extend the capabilities of Laravel Scout, enabling it to support all operations provided by the supported search engines.

Currenly Scout Plus provides extend support for Meilisearch only.

Installing

This package requires Laravel 9.0 or later running on PHP 8.0 or higher.

This package can be installed using composer:

composer require rrakibul/scout-plus

Documentation

Documentation for Scout can be found on the Laravel website.

Usage

Please follow the Scout documentation for development instructions.

Additional usages are given below that will support this package as well.

Document::search($q)->whereBetween('updated_at_timestamp', [$from, $to])

Now where clause will accept three parameters: [field], [operator], [value].

Supported operators: = , !=, >, <, >=, <=

Order::search($q)->where('amount', '>' 100)
// In case you ommit the operator parameter, this package will assume the operator is `=`.   

Order::search($q)->where('amount', 100)

Note: Currently, the above operations will work only for meilisearch driver.

License

Scout Plus is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-25