PHP code example of bugtower / bugtower-report

1. Go to this page and download the library: Download bugtower/bugtower-report 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/ */

    

bugtower / bugtower-report example snippets


    # Add `BugsnagLaravelServiceProvider` to the `providers` array
    'providers' => array(
        ...
        'BugTower\BugTowerLaravel\BugTowerLaravelServiceProvider',
    )

    # And in aliases add following
    'aliases' => array(
        ...
        'BugTower' => 'BugTower\BugTowerLaravel\BugTowerFacade',
    )
    

    # COMMENT this line
    use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
    

    # ADD this line instead
    use BugTower\BugTowerLaravel\BugTowerExceptionHandler as ExceptionHandler;
    

     namespace App\Exceptions;

    use Exception;
	// use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
    use BugTower\BugTowerLaravel\BugTowerExceptionHandler as ExceptionHandler;

    class Handler extends ExceptionHandler {
        ...
    }

    

		...
		'bugtower' => [
			'key' => 'YOUR-API-KEY-HERE',
			'endpoint' => 'http://bugtower.net/api/send',
		]
		...
    

		

		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',
			]
		];