Skip to content

[5.8] Allow rescued exception reporting to be disabled - #28617

Merged
taylorotwell merged 1 commit into
laravel:5.8from
robinvdvleuten:rescue-without-report
May 26, 2019
Merged

taylorotwell merged 1 commit into
laravel:5.8from
robinvdvleuten:rescue-without-report

Conversation

@robinvdvleuten

Copy link
Copy Markdown
Contributor

The rescue helper is definitely one of my favorites and use it a lot for parsing of request query values like dates for example. It's just quite annoying that the exceptions get reported even if I don't care about them at that specific location in my application logic.

I know that I can ignore the exception class in the handler, but sometimes the thrown exception still makes sense at other places.

This PR adds an optional boolean to the helper to allow exceptions to be just ignored instead of reporting them by default.

@taylorotwell
taylorotwell merged commit 4cff1ee into laravel:5.8 May 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants