PHP code example of spoob / unotis-laravel
1. Go to this page and download the library: Download spoob/unotis-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/ */
spoob / unotis-laravel example snippets
php artisan vendor:publish --tag=unotis-config
...
use Unotis;
...
->withExceptions(function (Exceptions $exceptions) {
$exceptions->report(function (InvalidOrderException $e) {
Unotis::catchException($exception);
});
})
...
use Unotis;
...
class Handler extends ExceptionHandler
{
...
public function report(Throwable $exception)
{
...
if ($this->shouldReport($exception)) {
Unotis::catchException($exception);
}
...
}
}
...