updated sentry package

This commit is contained in:
Denis Duliçi
2022-10-19 14:41:56 +03:00
parent 07e29d1650
commit c7d02e8fcc
5 changed files with 61 additions and 46 deletions

View File

@ -18,6 +18,7 @@ class Sentry
'locale' => (string) app()->getLocale(),
'timezone' => (string) config('app.timezone'),
'app_type' => (string) static::getAppType(),
'route_name' => (string) static::getRouteName(),
]);
return $event;
@ -67,4 +68,9 @@ class Sentry
return $app_type;
}
public static function getRouteName(): ?string
{
return request()->route()->getName();
}
}