PHPackages                             thehocinesaad/laravel-error-ai - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. thehocinesaad/laravel-error-ai

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

thehocinesaad/laravel-error-ai
==============================

This package adds Ask AI button to the error page.

2.0.1(9mo ago)2226.9k↓32.5%4[1 issues](https://github.com/theHocineSaad/laravel-error-ai/issues)MITBlade

Since Aug 30Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/theHocineSaad/laravel-error-ai)[ Packagist](https://packagist.org/packages/thehocinesaad/laravel-error-ai)[ Docs](https://github.com/thehocinesaad/laravel-error-ai)[ RSS](/packages/thehocinesaad-laravel-error-ai/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

[![483751021-05b78dc2-de69-476e-b177-acb919404d72 (1)](https://private-user-images.githubusercontent.com/11405387/483905093-cdd445b5-c771-4e3a-91a2-100a49c72483.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI2Nzk2NzksIm5iZiI6MTc4MjY3OTM3OSwicGF0aCI6Ii8xMTQwNTM4Ny80ODM5MDUwOTMtY2RkNDQ1YjUtYzc3MS00ZTNhLTkxYTItMTAwYTQ5YzcyNDgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA2MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVz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xLnGaAlPmtHGJ7JrY_8smk)Laravel Error AI
================

[](#laravel-error-ai)

Add “Ask AI” buttons to Laravel’s error page to quickly get help from ChatGPT or Claude. No API keys. No backend calls. Just smart links and beautiful UI.

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

[](#requirements)

- Laravel v12.25.0 or higher.
- If your project was originally created on Laravel versions earlier than 11.9, make sure to remove `spatie/laravel-ignition` otherwise it will override Laravel’s built-in error page and the “Copy as Markdown” and “Ask AI” buttons won’t appear.

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

[](#installation)

1. Install the package (typically as a dev dependency):

    - If your project's Laravel version is between `12.25.0` and `12.28.1`, install version `^1.0`:

        ```
        composer require --dev thehocinesaad/laravel-error-ai:^1.0
        ```
    - If your project's Laravel version is `12.29.0` or higher, install the latest version:

        ```
        composer require --dev thehocinesaad/laravel-error-ai
        ```
2. If `spatie/laravel-ignition` is installed on your project, uninstall it (otherwise it will override Laravel's built-in error page):

    ```
    composer remove spatie/laravel-ignition
    ```

Usage
-----

[](#usage)

Trigger an exception locally and open the error page. You’ll see:

- A “Copy as Markdown” button
- An “Ask AI” dropdown with quick links to ChatGPT and Claude, prefilled with your exception’s context

Click a provider to open it in your browser with the context ready to go.

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

[](#contributing)

Issues and PRs are welcome. Please keep changes focused and include concise descriptions.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance56

Moderate activity, may be stable

Popularity39

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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

Every ~5 days

Total

5

Last Release

286d ago

Major Versions

1.0.2 → 2.0.02025-09-21

### Community

Maintainers

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

---

Top Contributors

[![theHocineSaad](https://avatars.githubusercontent.com/u/11405387?v=4)](https://github.com/theHocineSaad "theHocineSaad (18 commits)")

---

Tags

phplaravelaiexceptionerrorthehocinesaadlaravel-error-ai

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/thehocinesaad-laravel-error-ai/health.svg)

```
[![Health](https://phpackages.com/badges/thehocinesaad-laravel-error-ai/health.svg)](https://phpackages.com/packages/thehocinesaad-laravel-error-ai)
```

###  Alternatives

[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

235358.7k](/packages/laracraft-tech-laravel-xhprof)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

74331.3k1](/packages/mozex-anthropic-laravel)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14845.8k1](/packages/guanguans-laravel-exception-notify)[bavix/laravel-xhprof

Quick profiling of your code for Laravel

22157.5k](/packages/bavix-laravel-xhprof)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)

PHPackages © 2026

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