lunarphp/search 问题修复 & 功能扩展

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

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

lunarphp/search

最新稳定版本:1.2.1

Composer 安装命令:

composer create-project lunarphp/search

包简介

Ecommerce search for LunarPHP

README 文档

README

This packages brings E-Commerce search to Lunar.

Requirements

  • Lunar >= 1.x

License

Lunar is open-sourced software licensed under the MIT license.

Installation

Require the composer package

composer require lunarphp/search

Usage

Basic Search

At a basic level, you can search models using the provided facade.

use Lunar\Search\Facades\Search;

// Search on a specific model
$results = Search::on(\Lunar\Models\Collection::class)->query('Hoodies')->get();

// Search on Lunar\Models\Product by default.
$results = Search::query('Hoodies')->get();

Under the hood this will detect what Scout driver is mapped under lunar.search.engine_map and then perform a search using that given driver. To increase performance the results will not be hydrated from the database, but instead will be the raw results from the search provider.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-16