File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff 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
2937composer 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
5462Then you should publish ` scout.php ` configuration file to your config directory
5563
You can’t perform that action at this time.
0 commit comments