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(11mo ago)2234.1k↓34.2%4[1 issues](https://github.com/theHocineSaad/laravel-error-ai/issues)MITBlade

Since Aug 30Pushed 11mo 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 2w 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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODU1NjQ3MzcsIm5iZiI6MTc4NTU2NDQzNywicGF0aCI6Ii8xMTQwNTM4Ny80ODM5MDUwOTMtY2RkNDQ1YjUtYzc3MS00ZTNhLTkxYTItMTAwYTQ5YzcyNDgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA4MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVz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bgcqKjcFwtFinOBsc)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

38

—

LowBetter than 83% of packages

Maintenance51

Moderate activity, may be stable

Popularity40

Moderate usage in the ecosystem

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

331d 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

[unopim/unopim

UnoPim Laravel PIM

10.8k2.5k](/packages/unopim-unopim)[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

235372.1k2](/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.

76364.8k1](/packages/mozex-anthropic-laravel)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21327.3k4](/packages/ecotone-laravel)[bavix/laravel-xhprof

Quick profiling of your code for Laravel

22157.8k](/packages/bavix-laravel-xhprof)

PHPackages © 2026

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