<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          laravel-scout-elasticElastic Driver for Laravel Scout

          聯(lián)合創(chuàng)作 · 2023-09-21 11:30

          Laravel Scout Elasticsearch Driver

          Latest Stable Version Total Downloads License Build Status

          This package provides a Elasticsearch driver for Laravel Scout.

          Contents

          Installation

          You can install the package via composer:

          composer require tamayo/laravel-scout-elastic

          Laravel will automatically register the driver service provider.

          Install elasticsearch-php client

          For use this library we recomend using the latest version at this time (^7.9)

          composer require elasticsearch/elasticsearch

          Setting up Elasticsearch configuration

          After you've published the Laravel Scout package configuration, you need to set your driver to elasticsearch and add its configuration:

          // config/scout.php
          ...
              // Set your driver to elasticsearch
              'driver' => env('SCOUT_DRIVER', 'elasticsearch'),
          ...
              /*
              |--------------------------------------------------------------------------
              | Elasticsearch Configuration
              |--------------------------------------------------------------------------
              |
              | Here you may configure your Elasticsearch settings.
              |
              */
              'elasticsearch' => [
                  'hosts' => [
                      env('ELASTICSEARCH_HOST', 'localhost'),
                      // [
                      //     'host'   => env('ELASTICSEARCH_HOST', 'localhost'),
                      //     'port'   => env('ELASTICSEARCH_PORT', '9200'),
                      //     'scheme' => env('ELASTICSEARCH_SCHEME', 'https'),
                      //     'path'   => env('ELASTICSEARCH_PATH', '/elastic'),
                      //     'user'   => env('ELASTICSEARCH_USER', 'username'),
                      //     'pass'   => env('ELASTICSEARCH_PASS', 'password'),
                      // ]
                  ],
              ]
          ...

          For host configuration you can refer to the official Elasticsearch documentation

          Usage

          Now you can use Laravel Scout as described in the Laravel Scout official documentation

          Limitations

          Identifying Users Currrently user identification is not supported.

          Credits

          License

          The MIT License (MIT).

          瀏覽 11
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  被扒开腿猛进入爽爽A片软件 | 色草视频 | 大香伊人国产 | 国产精品久久久久久久久久青青 | 成人免费视频 网站 |