PHP code example of snowsoft / reporter
1. Go to this page and download the library: Download snowsoft/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/ */
snowsoft / reporter example snippets
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);
}
...
}
$ composer isan vendor:publish --tag=laravel-admin-reporter
$ php artisan migrate --path=vendor/snowsoft/reporter/database/migrations
$ php artisan admin:import reporter