null-safe
This commit is contained in:
@ -71,6 +71,6 @@ class Sentry
|
||||
|
||||
public static function getRouteName(): ?string
|
||||
{
|
||||
return request()->route()->getName();
|
||||
return request()->route()?->getName();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user