exception-reporter / laravel-admin-ext
Exception reporter for laravel
v1.0
2021-04-13 03:04 UTC
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.5
- laravel/framework: ~6.0
Requires (Dev)
- laravel/laravel: ~6.0
- phpunit/phpunit: ~6.0
README
This tool stores the exception information into the database and provides a developer-friendly web interface to view the exception information.
Screenshot
Installation
$ composer require exception-reporter/laravel-admin-ext -vvv
$ php artisan vendor:publish --tag=laravel-admin-reporter
$ php artisan migrate --path=vendor/exception-reporter/laravel-admin-ext/database/migrations
$ php artisan admin:import reporter
Open app/Exceptions/Handler.php
, call Reporter::report()
inside report
method:
<?php namespace App\Exceptions; use Encore\Admin\Reporter\Reporter; use Exception; use Illuminate\Auth\AuthenticationException; use Illuminate\Validation\ValidationException; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; class Handler extends ExceptionHandler { ... public function report(Exception $exception) { if ($this->shouldReport($exception)) { Reporter::report($exception); } // parent::report($exception); } ... }
Open http://localhost/admin/exceptions
to view exceptions.
- laravel5.5/laravel-admin1.5 https://github.com/laravel-admin-extensions/reporter
License
Licensed under The MIT License (MIT).