Closed TheoKouzelis closed 2 years ago
Can I suggest that you also add an alternative condition to remind people they may not want this to fire on all environments
if ((env('APP_ENV') === 'production' || env('APP_ENV') === 'staging') && $this->shouldReport($throwable)) {
$airbrakeNotifier = App::make('Airbrake\Notifier');
$airbrakeNotifier->notify($throwable);
}