Laravel Error Solutions on the Default Exception Page

With the release of the first-party default exception page in Laravel 11.9, the existing error solutions feature was removed. The Laravel Error Solutions package by Spatie brings back solutions for the most common errors users face.

This package brings back the following features to the error page that were previously provided:

  • Display error solutions to common errors (i.e., function name typos)
  • Automate running some solutions that can be fixed automatically
  • Support for AI-generated solutions
  • Create a custom solution class to add your own solutions
  • And more...

You can get started with this package by installing it a dependency of your application:

composer require spatie/laravel-error-solutions

# Optionally publish the `error-solutions.php` config
php artisan vendor:publish --tag="error-solutions"

You can learn more about this package, get full installation instructions, and view the source code on GitHub. The documentation for this package is available on Spatie's docs website.


The post Laravel Error Solutions on the Default Exception Page appeared first on Laravel News.

Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.

Read more

© 2024 Extly, CB - All rights reserved.