PHPackages                             globalia/laravel-scout-mysql - 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. [Database &amp; ORM](/categories/database)
4. /
5. globalia/laravel-scout-mysql

ActiveLibrary[Database &amp; ORM](/categories/database)

globalia/laravel-scout-mysql
============================

MySql Driver for Laravel Scout

1.0.1(8y ago)2443[1 issues](https://github.com/globalia/laravel-scout-mysql/issues)PHP

Since Jul 23Pushed 8y ago3 watchersCompare

[ Source](https://github.com/globalia/laravel-scout-mysql)[ Packagist](https://packagist.org/packages/globalia/laravel-scout-mysql)[ RSS](/packages/globalia-laravel-scout-mysql/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Laravel Scout MySQL Driver
==========================

[](#laravel-scout-mysql-driver)

This package is a [MySQL](https://www.mysql.com/) driver for Laravel Scout.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Usage](#usage)
- [Credits](#credits)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer config repositories.globalia/laravel-scout-mysql git https://github.com/globalia/laravel-scout-mysql.git

composer require "globalia/laravel-scout-mysql" "^1.0"
```

You must add the Scout service provider and the package service provider in your app.php config:

```
// config/app.php
'providers' => [
    ...
    Laravel\Scout\ScoutServiceProvider::class,
    Globalia\LaravelScoutMysql\ScoutMysqlServiceProvider::class,
],
```

### Setting up database search indexes table:

[](#setting-up-database-search-indexes-table)

```
php artisan migrate
```

After you've published the Laravel Scout package configuration:

```
// config/scout.php
// Set your driver to mysql
    'driver' => env('SCOUT_DRIVER', 'mysql'),
```

Usage
-----

[](#usage)

Here is an example of how to use the engine:

```
    $result = Todo::search($term)
        ->where('boost(name)', 5)
        ->where('boost(tags)', 2)
        ->where('checked', 1)
        ->where('published_at >=', \Carbon::now());

    return null === $limit ? $result->get() : $result->paginate($limit);
```

Instead of using the "Laravel\\Scout\\Searchable" trait, use this "Globalia\\LaravelScoutMysql\\Models\\Concerns\\HasSearchIndex"

otherwise you can use Laravel Scout as described in the [official documentation](https://laravel.com/docs/5.4/scout)

### Searching in all models

[](#searching-in-all-models)

Since the index table is a model, you can search in it directly. Each result will be hydrated to its corresponding model.

```
    $result = SearchIndex::search($term);
```

Credits
-------

[](#credits)

- [Globalia](https://github.com/globalia)
- [All Contributors](../../contributors)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3217d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad0d82194c07e60c16706a388aa538e402d05e374d02d0ad65bce72ad006934c?d=identicon)[globalia](/maintainers/globalia)

---

Top Contributors

[![maxlamontagne](https://avatars.githubusercontent.com/u/5266296?v=4)](https://github.com/maxlamontagne "maxlamontagne (6 commits)")

---

Tags

driverlaravellaravel-scoutmysqlphplaravelmysqlscout

### Embed Badge

![Health badge](/badges/globalia-laravel-scout-mysql/health.svg)

```
[![Health](https://phpackages.com/badges/globalia-laravel-scout-mysql/health.svg)](https://phpackages.com/packages/globalia-laravel-scout-mysql)
```

###  Alternatives

[marktopper/doctrine-dbal-timestamp-type

Add the timestamp type for Doctrine/DBAL

49808.2k1](/packages/marktopper-doctrine-dbal-timestamp-type)[baril/sqlout

MySQL fulltext driver for Laravel Scout.

4512.9k](/packages/baril-sqlout)[boxed-code/laravel-scout-database

Generic database driver for laravel scout.

1151.7k](/packages/boxed-code-laravel-scout-database)[awssat/laravel-sync-migration

Laravel tool helps to sync migrations without refreshing the database

10923.2k](/packages/awssat-laravel-sync-migration)[mozex/laravel-scout-bulk-actions

A Laravel Scout extension for bulk importing and flushing of all models.

1033.4k](/packages/mozex-laravel-scout-bulk-actions)[sarfraznawaz2005/indexer

Laravel package to monitor SELECT queries and offer best possible INDEX fields.

562.7k](/packages/sarfraznawaz2005-indexer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
