PHPackages                             adrianopedro/laravel-scout-database-driver - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. adrianopedro/laravel-scout-database-driver

ActiveLibrary[Search &amp; Filtering](/categories/search)

adrianopedro/laravel-scout-database-driver
==========================================

Driver for Laravel Scout database search package

0.3.6(3y ago)01221[1 PRs](https://github.com/adrianopedro/laravel-scout-database-driver/pulls)MITPHPPHP &gt;=7.2CI failing

Since May 21Pushed 3y agoCompare

[ Source](https://github.com/adrianopedro/laravel-scout-database-driver)[ Packagist](https://packagist.org/packages/adrianopedro/laravel-scout-database-driver)[ RSS](/packages/adrianopedro-laravel-scout-database-driver/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (9)Versions (15)Used By (0)

About APSearch Scout Driver
===========================

[](#about-apsearch-scout-driver)

Laravel Scout Driver based on database search

How to...
---------

[](#how-to)

> **Requires:**

- **[PHP 7.2+](https://php.net/releases/)**
- **[Laravel 5.8+](https://github.com/laravel/laravel)**

**1**: First, you may use [Composer](https://getcomposer.org) to install APSearch as a required dependency into your Laravel project:

```
composer require AdrianoPedro/laravel-scout-database-driver
```

**2**: Then, you have to publish the database migration into your Laravel project:

```
php artisan vendor:publish --tag=apsearch-migrations
```

**3**: Now, you have to migrate the database migration into your Laravel project:

```
php artisan migrate --path=/database/migrations/create_searchables_table.php
```

**5**: Update your ***.env*** and ***config/scout.php*** files to set scout driver to apsearch:

***.env***

```
	SCOUT_DRIVER = apsearch
	SCOUT_QUEUE  = true //for queueing the process, if false it will be processed emmidiatly uppon creation/update/delete
```

***config/scout.php***

```
//...
'algolia' => [
	'id' => env('ALGOLIA_APP_ID', ''),
	'secret' => env('ALGOLIA_SECRET', ''),
],
//...
'apsearch' => [
    'asYouType'     => true,
    'searchMode'    => "LIKE",  // LIKE, BOOLEAN, NATURAL, DIRECT (direct
                                // search over model collection).
                                // searchModel can also be defined per Model.
],
//...
```

**5**: Add apSearchScoutServiceProvider the providers list on your projects **config/app.php**:

```
