The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

Laravel Error Solutions

spatie/laravel-error-solutions image

Laravel Error Solutions stats

Downloads
16
Stars
12
Open Issues
1
Forks
1

View on GitHub →

Display solutions on the Laravel error page

Display solutions on the Laravel error page

This package can display solutions on the Laravel error page. Here's how it looks:

For some solutions, the package will display a button that will automatically run the solution. Here's how that looks when you forget to set an APP_KEY in your .env file:

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Installation

You can install the package via composer:

composer require spatie/laravel-error-solutions

You can publish the config file with:

php artisan vendor:publish --tag="laravel-error-solutions-config"

This is the contents of the published config file:

return [
/**
* Display solutions on the error page
*/
'enabled' => true,
 
/**
* Enable or disable runnable solutions.
*
* Runnable solutions will only work in local development environments,
* even if this flag is set to true.
*/
'enable_runnable_solutions' => true,
 
/**
* This class is responsible for determining if a solution is runnable.
*
* In most cases, you can use the default implementation.
*/
'runnable_solutions_guard' => Spatie\LaravelErrorSolutions\Support\RunnableSolutionsGuard::class,
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="laravel-error-solutions-views"

Usage

You can find full documentation on how to use this package on our documentation site.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

spatie photo

We create open source, digital products and courses for the developer community

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Spatie Laravel Error Solutions Related Articles

Laravel Error Solutions on the Default Exception Page image

Laravel Error Solutions on the Default Exception Page

Read article
A New Major Version of Ignition Debuts in Laravel 9 image

A New Major Version of Ignition Debuts in Laravel 9

Read article
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
Typesense Search logo

Typesense Search

Typesense is an open source, blazing-fast search engine, optimized for helping you build delightful search experiences for your sites and apps. Natively integrated with Laravel Scout.

Typesense Search
Laravel Cloud logo

Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Cloud
Securing Laravel logo

Securing Laravel

The essential security resource for Laravel devs, covering everything you need to keep your apps secure. Sign up to receive weekly security tips and monthly in depth articles, diving deep into security concepts you need to know!

Securing Laravel
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech
Celebian logo

Celebian

Celebian is a social media marketing agency specializing in helping their clients go viral on TikTok. Whether you're looking to reach a bigger audience or gain more Tiktok followers, likes, and views, they've got you covered.

Celebian