PHP code example of teg1c / elasticsearch-for-laravel
1. Go to this page and download the library: Download teg1c/elasticsearch-for-laravel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
teg1c / elasticsearch-for-laravel example snippets
use teg1c\elasticsearchBuilder\Model\ElasticsearchModel;
/**
* Class AtPerson
* $host ES IP或URL地址
* $port ES 端口
* @package teg1c\elasticsearchBuilder\Model
*/
class AtPerson extends ElasticsearchModel
{
protected $host = "127.0.0.1";
protected $port = "32800";
}