luminee/esun

Make ElasticSearch operation like SQL, build ORM for ElasticSearch

0.1 2019-07-17 00:44 UTC

This package is auto-updated.

Last update: 2024-10-29 05:34:48 UTC


README

Make ElasticSearch operation like SQL, build ORM for ElasticSearch

Installation

Install through Composer.

composer require luminee/esun

Add service provider in your project's config/app.php file:

  'providers' => [
    // Other Providers

    Luminee\Esun\EsunServiceProvider::class,
  ],

and facades:

  'aliases' => [
    // Other Aliases

    'ES' => Luminee\Esun\Facades\ES::class,
  ],

Configuration

Publish the esun.php to config folder

php artisan vendor:publish --provider="Luminee\Esun\EsunServiceProvider"