Laravel

Install the Raygun4PHP provider along side the laravel-raygun wrappers by using Composer. Installation instructions can be found at https://github.com/davibennun/laravel-raygun.

Open the file app\Exceptions\Handler.php and add the following line before the class declaration.

use Raygun;

Inside app\Exceptions\Handler.php add following line into the report method.

public function report(Exception $e)
{
  // Send all exceptions:
  Raygun::SendException($e);

  parent::report($e);
}