bugsnag / bugsnag-laravel

BugSnag notifier for the Laravel PHP framework. Monitor and report Laravel errors.
https://docs.bugsnag.com/platforms/php/laravel/
MIT License
876 stars 129 forks source link

Add new options for passing regexes to project root and strip path #398

Closed imjoehaines closed 4 years ago

imjoehaines commented 4 years ago

Goal

Allow using the bugsnag-php options for setting the project root and strip path as regexes, rather than just strings

This adds two new options, project_root_regex and strip_path_regex, which can be used instead of the existing project_root and strip_path options to allow setting them as regexes, as introduced in https://github.com/bugsnag/bugsnag-php/pull/514

This is a continuation of https://github.com/bugsnag/bugsnag-laravel/pull/348

Changeset

Added

Changed

Tests

More unit tests have been added, building off of https://github.com/bugsnag/bugsnag-laravel/pull/395

Discussion

Alternative Approaches

Outstanding Questions

Linked issues

Related to bugsnag/bugsnag-php#514 Related to #348

Review

For the submitter, initial self-review:

For the pull request reviewer(s), this changeset has been reviewed for: