承接 majidalaeinia/refresh-elastic 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

majidalaeinia/refresh-elastic

Composer 安装命令:

composer require majidalaeinia/refresh-elastic

包简介

Refresh Elasticsearch indices for your tests (delete the indices and index them again based on their mappings if available).

README 文档

README

You can use this package to refresh elastic indices (delete the index and make the index again with its corresponding mapping).
Inspired by Laravel RefreshDatabase.

Installation

Via Composer

$ composer require majidalaeinia/refresh-elastic --dev

Usage

First you need to publish the config file.

php artisan vendor:publish --tag=majidalaeinia-refresh-elastic.config

Fill the config file with appropriate values.

Then, use the RefreshElastic trait on your test.

<?php

namespace Tests\Feature\FancyTests;

use MajidAlaeinia\RefreshElastic\Traits\RefreshElastic;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;

class YourFancyTest extends TestCase
{
    use RefreshDatabase, RefreshElastic;
    
}

Important NOTE: Make sure you are using this package on the development mode, because this trait deletes your elastic indices and re-indexes them.

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email alaeinia.majid@gmail.com instead of using the issue tracker.

Credits

TODO

  • Add tests

License

MIT. Please see the license file for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-02-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固