PHP code example of majidalaeinia / refresh-elastic
1. Go to this page and download the library: Download majidalaeinia/refresh-elastic 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/ */
majidalaeinia / refresh-elastic example snippets
namespace Tests\Feature\FancyTests;
use MajidAlaeinia\RefreshElastic\Traits\RefreshElastic;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class YourFancyTest extends TestCase
{
use RefreshDatabase, RefreshElastic;
}
bash
php artisan vendor:publish --tag=majidalaeinia-refresh-elastic.config