bugtower / bugtower-report
BugTower Log saver
1.1
2015-05-07 21:24 UTC
Requires
- php: >=5.3.0
- ext-curl: *
This package is not auto-updated.
Last update: 2025-07-05 21:13:07 UTC
README
Instant notifications for yours errors and exceptions on your Laravel php applications.
BugTower captures errors in real-time from your web and android applications, helping you to understand and resolve them as fast as possible.
How to Install
-
Install the
bugtower/bugtower-report
package$ composer require "bugtower/bugtower-report": "dev-master"
-
Update
config/app.php
# Add `BugsnagLaravelServiceProvider` to the `providers` array 'providers' => array( ... 'BugTower\BugTowerLaravel\BugTowerLaravelServiceProvider', ) # And in aliases add following 'aliases' => array( ... 'BugTower' => 'BugTower\BugTowerLaravel\BugTowerFacade', )
-
Change exception handler in
App/Exceptions/Handler.php
.# COMMENT this line use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
# ADD this line instead use BugTower\BugTowerLaravel\BugTowerExceptionHandler as ExceptionHandler;
After this change, your file should look like this:
<?php namespace App\Exceptions; use Exception; // use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use BugTower\BugTowerLaravel\BugTowerExceptionHandler as ExceptionHandler; class Handler extends ExceptionHandler { ... }
Configuration
-
Open file
config/services.php
-
Add array
api_key
:... 'bugtower' => [ 'key' => 'YOUR-API-KEY-HERE', 'endpoint' => 'http://bugtower.net/api/send', ] ...
After this change, your file should look like this:
<?php return [ 'mailgun' => [ 'domain' => '', 'secret' => '', ], 'mandrill' => [ 'secret' => '', ], 'ses' => [ 'key' => '', 'secret' => '', 'region' => 'us-east-1', ], 'stripe' => [ 'model' => 'App\User', 'secret' => '', ], 'bugtower' => [ 'key' => 'YOUR-API-KEY-HERE', 'endpoint' => 'http://bugtower.net/api/send', ] ];