PHPackages                             halilcosdu/laravel-slower - 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. halilcosdu/laravel-slower

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

halilcosdu/laravel-slower
=========================

Laravel Slower: Optimize Your DB Queries with AI

v2.0.5(5mo ago)40022.0k↓31.4%23[2 PRs](https://github.com/halilcosdu/laravel-slower/pulls)MITPHPPHP ^8.2CI passing

Since May 3Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/halilcosdu/laravel-slower)[ Packagist](https://packagist.org/packages/halilcosdu/laravel-slower)[ Docs](https://github.com/halilcosdu/laravel-slower)[ Fund](https://www.buymeacoffee.com/halilcosdu5)[ RSS](/packages/halilcosdu-laravel-slower/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (25)Used By (0)

Laravel Slower: Optimize Your DB Queries with AI
================================================

[](#laravel-slower-optimize-your-db-queries-with-ai)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c9a21068cee88b76fefad5a4f0c2fddf5755fa68c5e7b3a62e23acf8e292f5ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68616c696c636f7364752f6c61726176656c2d736c6f7765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/halilcosdu/laravel-slower)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ec23eb7a9ccd68a9ab5bdea6f76839d94936a1929d783a8bf072cee70b83174b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f68616c696c636f7364752f6c61726176656c2d736c6f7765722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/halilcosdu/laravel-slower/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/b0e0bb9eb234c8b76b9bb86d732aef1edffd0df171088d64b39def607fe3ee6a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f68616c696c636f7364752f6c61726176656c2d736c6f7765722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/halilcosdu/laravel-slower/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/a9165d01ab55282b61c20ce86503ae1b33a9437f2eb19d1c665e3d7659fcc3a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68616c696c636f7364752f6c61726176656c2d736c6f7765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/halilcosdu/laravel-slower)

[![halilcosdu%2Flaravel-slower | Trendshift](https://camo.githubusercontent.com/b367312f4c99b8d38ff541e4e2bdffed4cabc498e1bb527b8e36f99b718b15a8/68747470733a2f2f7472656e6473686966742e696f2f6170692f62616467652f7265706f7369746f726965732f3130303233)](https://trendshift.io/repositories/10023)

Laravel Slower is a powerful package designed for Laravel developers who want to enhance the performance of their applications. It intelligently identifies slow database queries and leverages AI to suggest optimal indexing strategies and other performance improvements. Whether you're debugging or routinely monitoring your application, Laravel Slower provides actionable insights to streamline database interactions.

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Laravel 10.x, 11.x, or 12.x

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

[](#installation)

You can install the package via composer:

```
composer require halilcosdu/laravel-slower
```

You can publish the config file with:

```
php artisan vendor:publish --tag="slower-config"
```

This is the contents of the published config file:

You can disable AI recommendations by setting the `ai_recommendation` key to `false` in the config file. If you disable AI recommendations, the package will not make any API requests to OpenAI.

```
