You can install the package via composer:
composer require spatie/laravel-error-solutions
##Publishing the config file
Optionally, you can publish the error-solutions
config file with this command.
php artisan vendor:publish --tag="error-solutions-config"
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,
];
##Publishing the views files
Optionally, you can publish the views using
php artisan vendor:publish --tag="error-solutions-views"