New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

thehocinesaad/laravel-error-ai

This package adds Ask AI button to the error page.
59,090 22
Install
composer require thehocinesaad/laravel-error-ai
Latest Version:2.0.1
Laravel:12
License:MIT
Last Updated:Sep 21, 2025
Links: GitHub  ·  Packagist
Maintainer: theHocineSaad
483751021-05b78dc2-de69-476e-b177-acb919404d72 (1)

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

  • 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

  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

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

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

Related Packages

bebetter/exception-alert

Laravel 5 alert on exception

286 1
swayok/laravel-extended-errors

Laravel logging extender used to render logs and exceptions as HTML to store to...

1,385 1
themonkeys/error-emailer

Emails you whenever an error occurs on your server

17,257 49
codex-team/hawk.laravel

Laravel errors Catcher module for Hawk.so

4,556 4
tigusigalpa/yandexgpt-php

PHP SDK для работы с YandexGPT API с поддержкой Laravel

2,108 24

Version History

Version Released Laravel License
2.0.1 >=12.25.0 MIT
2.0.0 >=12.25.0 MIT
1.0.2 >=12.25.0 MIT
1.0.1 MIT
1.0.0 MIT