1. Go to this page and download the library: Download ips-laravel/huntglitch 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/ */
ips-laravel / huntglitch example snippets
use Itpath\Huntglitch\Huntglitch;
try {
echo 100 / 0;
} catch (Throwable $e) {
$glitch = new Huntglitch();
$glitch->add($e);
}
use Itpath\Huntglitch\Huntglitch;
public function register()
{
$this->reportable(function (Throwable $e) {
$glitch = new Huntglitch();
$glitch->add($e);
});
}
use Illuminate\Foundation\Configuration\Exceptions;
use Itpath\Huntglitch\Huntglitch;
->withExceptions(function (Exceptions $exceptions): void {
$exceptions->report(function (\Throwable $e) {
$glitch = new Huntglitch();
$glitch->add($e);
});
})
->create();