PHP code example of programic / laravel-tools
1. Go to this page and download the library: Download programic/laravel-tools 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/ */
programic / laravel-tools example snippets
->withExceptions(function (Exceptions $exceptions) {
Integration::handles($exceptions);
})
public function report(Exception $exception)
{
if ($this->shouldReport($exception) && app()->bound('sentry')) {
app('sentry')->captureException($exception);
}
parent::report($exception);
}