See instructions: https://github.com/davibennun/laravel-raygun
File: app\Exceptions\Handler.php
Add this line before the class declaration:
use Raygun;
To send all exceptions to Raygun, add this line into the report
method :
public function report(Exception $e)
{
// Send all exceptions:
Raygun::SendException($e);
parent::report($e);
}
Alternatively, you can select which exceptions you want to send using the instanceof operator:
public function report(Exception $e)
{
// Send only a particular type of exception:
if($e instanceof MyCustomException) {
Raygun::SendException($e);
}
parent::report($e);
}