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 {
...
}