From 9d21069fc0f47f254a8af31e72e27ed499239ab0 Mon Sep 17 00:00:00 2001 From: hi019 <65871571+hi019@users.noreply.github.com> Date: Mon, 22 Nov 2021 16:55:35 -0500 Subject: [PATCH] README updates --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bac4bae..30f913d 100644 --- a/README.md +++ b/README.md @@ -22,14 +22,22 @@ This package makes it easy to add full text search support to your models with L ## Installation +The Typesense PHP SDK uses httplug to interface with various PHP HTTP libraries through a single API. -You can install the package via composer: +First, install the correct httplug adapter based on your `guzzlehttp/guzzle` version. For example, if you're on +Laravel 8, which includes Guzzle 7, then run this: -``` bash +```bash +composer require php-http/guzzle7-adapter +``` + +Then install the driver: + +```bash composer require typesense/laravel-scout-typesense-driver ``` -Add the service provider: +And add the service provider: ```php // config/app.php @@ -49,7 +57,7 @@ Ensure you have Laravel Scout as a provider too otherwise you will get an "unres ], ``` -Add `SCOUT_DRIVER=typesense` to your `.env` file +Add `SCOUT_DRIVER=typesense` to your `.env` file Then you should publish `scout.php` configuration file to your config directory