Laravel Error Solutions
spatie/laravel-error-solutions
Laravel 오류 페이지에 해결 방법을 표시합니다
이 패키지는 Laravel 오류 페이지에 해결 방법(solution)을 보여 줍니다. 실제 화면은 다음과 같습니다.

일부 해결 방법에는 클릭 한 번으로 해결 방법을 자동 실행하는 버튼이 함께 표시됩니다. 예를 들어 .env 파일에 APP_KEY를 설정하지 않았을 때는 다음과 같이 나타납니다.

후원하기
Spatie는 최고 수준의 오픈 소스 패키지를 만드는 데 많은 자원을 투자하고 있습니다. 유료 제품을 구매해 주시면 큰 도움이 됩니다.
또한 사용 중인 패키지를 적어 고향에서 보낸 엽서를 보내 주시면 매우 감사하겠습니다. 주소는 문의 페이지에서 확인할 수 있으며, 받은 엽서는 모두 온라인 엽서 월에 게시합니다.
설치
Composer로 패키지를 설치합니다.
composer require --dev spatie/laravel-error-solutions다음 명령으로 설정 파일을 게시(publish)할 수 있습니다.
php artisan vendor:publish --tag="error-solutions-config"게시된 설정 파일의 내용은 다음과 같습니다.
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,
];필요하다면 다음 명령으로 뷰도 게시할 수 있습니다.
php artisan vendor:publish --tag="error-solutions-views"NOTE
설정 파일의 enable_runnable_solutions가 true여도, 실행 가능한 해결 방법은 로컬 개발 환경에서만 동작합니다.
사용법
패키지 사용법에 대한 전체 문서는 공식 문서 사이트에서 확인할 수 있습니다.
테스트
composer test변경 내역
최근 변경 사항은 CHANGELOG를 참고하세요.
기여하기
자세한 내용은 CONTRIBUTING을 참고하세요.
보안 취약점
보안 취약점을 보고하는 방법은 보안 정책을 확인해 주세요.
크레딧
라이선스
MIT 라이선스(MIT)를 따릅니다. 자세한 내용은 라이선스 파일을 참고하세요.
