Already integrated Sentry in my Laravel project , Sentry is capturing all the errors no matter what status code is, i only want to capture errors with status code 500 and get notified, how can i filter the capture of the events ?
public function register()
{
$this->reportable(function (Throwable $e) {
if (app()->bound('sentry')) {
app('sentry')->captureException($e);
}
});
}