Cüneyt Şentürk fba6ff7318 typo..
2022-11-22 12:51:56 +03:00

25 lines
467 B
PHP

<?php
namespace App\Exceptions\Trackers;
use App\Traits\Trackers as Base;
use Throwable;
class Bugsnag
{
use Base;
public static function beforeSend(Throwable $e): void
{
app('bugsnag')->setAppVersion(version('short'));
$tags = self::getTrackerTags();
app('bugsnag')->registerCallback(function ($report) use($tags) {
$report->setMetaData([
'akaunting' => $tags
]);
});
}
}