@Rudy-L what do you want to achieve? null driver doesn't store any data.
Scout without angolia
Can someyone me explain the code i need, because i have always a emplty array as result.
i have make next staps:
=> composer require laravel/scout
=> php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider"
=> Model: use Laravel\Scout\Searchable;
use Searchable;
=> Config/scout: 'driver' => env('SCOUT_DRIVER', 'null'),
What about this functions? do i need this?
=> public function searchableAs() { return 'posts_index'; }
=> public function toSearchableArray() { $array = $this->toArray();
Customize array...return $array;
}
@rudy-l Scout with null driver will do nothing. If you don't want to use Algolia, there are some alternatives like MySQL, Elasticsearch etc.
Here is the list of some community driven drivers:
MySQL: https://github.com/yabhq/laravel-scout-mysql-driver
TNTSearch: https://github.com/teamtnt/laravel-scout-tntsearch-driver
Elasticsearch: https://github.com/ErickTamayo/laravel-scout-elastic
Please or to participate in this conversation.