thehocinesaad / laravel-error-ai
This package adds Ask AI button to the error page.
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 1
Forks: 4
Open Issues: 2
Language:Blade
Requires
- laravel/framework: >=12.25.0
Requires (Dev)
- laravel/pint: ^1.24
- orchestra/testbench: ^10.6
Conflicts
This package is not auto-updated.
Last update: 2025-09-04 14:39:33 UTC
README
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
- Install the package (typically as a dev dependency):
composer require --dev thehocinesaad/laravel-error-ai
- 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.