I am trying to add algolia search system into my laravel(5.6) web app. For this,
I followed below instructions
composer require laravel/scout
php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider"
use Searchable trait into my User model
use Laravel\Scout\Searchable;
composer require algolia/algoliasearch-client-php
php artisan scout:import "App\User"
I also set (ALGOLIA_APP_ID) and (ALGOLIA_SECRET) both of my .env and scout.php file
I also added some dummy data to my users table and when I try to import those data to my algolia site by using (php artisan scout:import "App\User") this command I am getting this error (Class 'AlgoliaSearch\Version' not found)
composer dumpautoload
? – aynber