You can install the package via composer:
composer require spatie/laravel-error-solutions
##Publishing the config file
Optionally, you can publish the health
config file with this command.
php artisan vendor:publish --tag="error-solutions"
This is the content of the published config file:
return [
'enabled' => true,
'enable_runnable_solutions' => true,
'solution_providers' => [
'php',
'laravel',
],
'open_ai_key' => env('ERROR_SOLUTIONS_OPEN_AI_KEY'),
'runnable_solutions_guard' => Spatie\LaravelErrorSolutions\Support\RunnableSolutionsGuard::class,
];