<?php
namespace App\Providers;
use Bugsnag\BugsnagLaravel\BugsnagServiceProvider;
use Bugsnag\BugsnagLaravel\Commands\DeployCommand;
use Bugsnag\BugsnagLaravel\Facades\Bugsnag;
use Illuminate\Contracts\Logging\Log;
use Illuminate\Support\ServiceProvider;
use Psr\Log\LoggerInterface;
class AppServiceProvider extends ServiceProvider
{
public function register()
{
if ($this->app->environment('local')) {
return;
}
$this->registerBugsnag();
}
protected function registerBugsnag()
{
$this->app->register(BugsnagServiceProvider::class);
$this->commands(DeployCommand::class);
$this->app->alias('bugsnag.multi', Log::class);
$this->app->alias('bugsnag.multi', LoggerInterface::class);
$this->app->alias('Bugsnag', Bugsnag::class);
}
}
Expected behavior
Should go to Bugsnag
Observed behavior
It's not going to Bugsnag
Steps to reproduce
Version
laravel/framework:5.4.36bugsnag/bugsnag-laravel:2.14.1Additional information
My AppServiceProvider: