library bugtower-report
BugTower Log saver
bugtower/bugtower-report
BugTower Log saver
- Thursday, May 7, 2015
- by bugtower
- Repository
- 1 Watchers
- 0 Stars
- 10 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
Notifier for Laravel 5
Instant notifications for yours errors and exceptions on your Laravel php applications., (*1)
BugTower captures errors in real-time from your web and android applications, helping you to understand and resolve them as fast as possible., (*2)
How to Install
-
Install the bugtower/bugtower-report package, (*3)
$ composer require "bugtower/bugtower-report": "dev-master"
-
Update config/app.php, (*4)
# 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., (*5)
# 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:, (*6)
<?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, (*7)
-
Add array api_key:, (*8)
...
'bugtower' => [
'key' => 'YOUR-API-KEY-HERE',
'endpoint' => 'http://bugtower.net/api/send',
]
...
After this change, your file should look like this:, (*9)
<?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',
]
];