PHP code example of taxus-search / laravel-scout-driver

1. Go to this page and download the library: Download taxus-search/laravel-scout-driver 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/ */

    

taxus-search / laravel-scout-driver example snippets


// config/app.php
'providers' => [
    ...
    Laravel\Scout\ScoutServiceProvider::class,
    ...
    TaxusSearch\LaravelScoutDriver\LaravelScoutDriverProvider::class,

],

// config/scout.php
// Set your driver to taxus
    'driver' => env('SCOUT_DRIVER', 'taxus'),

php artisan vendor:publish

// config/taxus.php
    'key' => env('TAXUS_API_KEY', 'Taxus_API_KEY'),
    'search_key' => env('TAXUS_SEARCH_API_KEY', 'XXXXXXXXXXXXXXXX'),