PHP code example of daimakuai-ext / reporter

1. Go to this page and download the library: Download daimakuai-ext/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/ */

    

daimakuai-ext / reporter example snippets




namespace App\Exceptions;

use Jblv\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=daimakuai-admin-reporter

$ php artisan migrate --path=vendor/daimakuai-ext/reporter/database/migrations

$ php artisan admin:import reporter