PHPackages                             therecluse26/laravel-scout-tools - 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. [API Development](/categories/api)
4. /
5. therecluse26/laravel-scout-tools

ActiveLibrary[API Development](/categories/api)

therecluse26/laravel-scout-tools
================================

Tools and enhancements for Laravel Scout

47.4k[2 PRs](https://github.com/therecluse26/laravel-scout-tools/pulls)PHP

Since Nov 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/therecluse26/laravel-scout-tools)[ Packagist](https://packagist.org/packages/therecluse26/laravel-scout-tools)[ RSS](/packages/therecluse26-laravel-scout-tools/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Tools and enhancements for Laravel Scout
========================================

[](#tools-and-enhancements-for-laravel-scout)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3699fbc2ac786cdce410e113a2da5048a5a5fdc553f7fe9c381d41b5e3d219eb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468657265636c75736532362f6c61726176656c2d73636f75742d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/therecluse26/laravel-scout-tools)[![GitHub Tests Action Status](https://camo.githubusercontent.com/a45343bdd4f143f22da3b9f2144bd5a12f8050c6ead40acd6a92a5b0f3a2c9b0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7468657265636c75736532362f6c61726176656c2d73636f75742d746f6f6c732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/therecluse26/laravel-scout-tools/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6a28fbf6023b4dcb567959dd13c3d85920260f8988a5a15be4d572fd3a6ec0ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7468657265636c75736532362f6c61726176656c2d73636f75742d746f6f6c732f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/therecluse26/laravel-scout-tools/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/35bd4f3876d0fcde319af521db3497313883122d70868c17a33766a3acb57ffb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468657265636c75736532362f6c61726176656c2d73636f75742d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/therecluse26/laravel-scout-tools)

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

[](#installation)

You can install the package via composer:

```
composer require therecluse26/laravel-scout-tools
```

You can publish all custom resources with:

```
php artisan vendor:publish --provider="TheRecluse26\ScoutTools\ScoutToolsServiceProvider"
php artisan migrate
```

This will generate a migration file and a `config/scout-tools.php` file with the following contents:

(This config can be individually be generated using `php artisan vendor:publish --tag="scout-tools-config"`)

```
return [
	'driver' => env('SCOUT_DRIVER'),
	'routes' => [
		'middleware' => ['auth:api'],
		'endpoints' => [
			'get-models' => ['path' => '/scout/models'],
			'refresh-models' => ['path' => '/scout/models/refresh'],
			'index-detail' => ['path' => '/scout/index/{scout_model}'],
		],
	],
];
```

This can be modified to specify custom route paths well as which middleware(s) to apply to the route group

### Views

[](#views)

Optionally, you can publish Vue templates to `/resources/assets/js/scout-tools` using

```
php artisan vendor:publish --tag="scout-tools-vue"
```

You can also publish Blade components using (these will be published to `app/View/Components/Scout`)

```
 php artisan scout-tools:install-view ScoutModelTable
 php artisan scout-tools:install-view ScoutModelTableRow
```

Usage
-----

[](#usage)

This package provides some useful functionality missing from the base Laravel Scout package

### Artisan Commands

[](#artisan-commands)

This package exposes a `php artisan scout:sync` command that can be used to automatically detect all project models with the Scout `Searchable` trait and synchronize their data with the configured Scout service.

Passing a `--flush` or `-F` flag to this command will clear the Scout index data and re-sync it all from scratch.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/therecluse26/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

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

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 55.6% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6200f7bb602adea612ea1c80ba5bb26871be42d5b1ab79bc86018857623a2e0d?d=identicon)[therecluse26](/maintainers/therecluse26)

---

Top Contributors

[![therecluse26](https://avatars.githubusercontent.com/u/8239106?v=4)](https://github.com/therecluse26 "therecluse26 (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

### Embed Badge

![Health badge](/badges/therecluse26-laravel-scout-tools/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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