PHP code example of errtap / laravel

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

    

errtap / laravel example snippets


->withExceptions(function (Illuminate\Foundation\Configuration\Exceptions $exceptions) {
    $exceptions->reportable(fn (Throwable $e) => ErrTap\ErrTap::captureException($e));
})

$this->reportable(fn (Throwable $e) => ErrTap\ErrTap::captureException($e));

ErrTap\ErrTap::captureMessage('something noteworthy');