PHP code example of bfg / admin-exception-reporter
1. Go to this page and download the library: Download bfg/admin-exception-reporter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bfg / admin-exception-reporter example snippets
namespace App\Exceptions;
use Admin\Extend\AdminExceptionReporter\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);
}
...
}
php artisan admin:extension bfg/admin-exception-reporter --install
php artisan migrate