Daravel

daravel_scout

English ยท Bahasa Indonesia

Laravel Scout for Daravel, on the database engine: the search runs on the model's own table with LIKE and full text search, and semantic() and hybrid() search by meaning on PostgreSQL with pgvector or on MariaDB.

final class Post extends Model with Searchable {
  // ...
  @override
  Map<String, Object?> toSearchableArray() => {'title': null, 'body': null};
}

final posts = await Scout.search(Post.definition, 'laravel').take(10).get();

See the guide.

Libraries

daravel_scout
Laravel Scout for Daravel, on the database engine: LIKE and full text search on the model's own table, and semantic() and hybrid() on PostgreSQL with pgvector or MariaDB.