Skip to content

Commit 9d21069

Browse files
committed
README updates
1 parent efe67d3 commit 9d21069

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,22 @@ This package makes it easy to add full text search support to your models with L
2222

2323

2424
## Installation
25+
The Typesense PHP SDK uses httplug to interface with various PHP HTTP libraries through a single API.
2526

26-
You can install the package via composer:
27+
First, install the correct httplug adapter based on your `guzzlehttp/guzzle` version. For example, if you're on
28+
Laravel 8, which includes Guzzle 7, then run this:
2729

28-
``` bash
30+
```bash
31+
composer require php-http/guzzle7-adapter
32+
```
33+
34+
Then install the driver:
35+
36+
```bash
2937
composer require typesense/laravel-scout-typesense-driver
3038
```
3139

32-
Add the service provider:
40+
And add the service provider:
3341

3442
```php
3543
// config/app.php
@@ -49,7 +57,7 @@ Ensure you have Laravel Scout as a provider too otherwise you will get an "unres
4957
],
5058
```
5159

52-
Add `SCOUT_DRIVER=typesense` to your `.env` file
60+
Add `SCOUT_DRIVER=typesense` to your `.env` file
5361

5462
Then you should publish `scout.php` configuration file to your config directory
5563

0 commit comments

Comments
 (0)