Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
peraleks committed Mar 31, 2017
1 parent 9d0336a commit 589257a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ Copy file **_vendor/peraleks/laravel-pretty-errors/src/Config/pretty-errors.php_

Add code to **_App\Exceptions\Handler_** :
```php
use Peraleks\LaravelPrettyErrors\Core\PrettyHandler;
use Symfony\Component\Debug\Exception\FlattenException;
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;


protected function convertExceptionToResponse(Exception $e)
{
$html = PrettyHandler::format($e, config_path('pretty-errors.php'));
Expand Down

0 comments on commit 589257a

Please sign in to comment.