开源软件名称(OpenSource Name):getsentry/sentry-laravel开源软件地址(OpenSource Url):https://github.com/getsentry/sentry-laravel开源编程语言(OpenSource Language):PHP 99.6%开源软件介绍(OpenSource Introduction):Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us Check out our open positions Official Sentry SDK for LaravelThis is the official Laravel SDK for Sentry Getting StartedThe installation step below work on the latest versions of the Laravel framework (8.x and 9.x). For other Laravel or Lumen versions see: InstallInstall the composer require sentry/sentry-laravel Enable capturing unhandled exception to report to Sentry by making the following change to your public function register()
{
$this->reportable(function (Throwable $e) {
if (app()->bound('sentry')) {
app('sentry')->captureException($e);
}
});
}
ConfigureConfigure the Sentry DSN with this command: php artisan sentry:publish --dsn=___PUBLIC_DSN___ It creates the config file ( SENTRY_LARAVEL_DSN=___PUBLIC_DSN___ Usagetry {
$this->functionFailsForSure();
} catch (\Throwable $exception) {
\Sentry\captureException($exception);
}
Laravel Version Compatibility
Please note that of version Contributing to the SDKPlease refer to CONTRIBUTING.md. Getting help/supportIf you need help setting up or configuring the Laravel SDK (or anything else in the Sentry universe) please head over to the Sentry Community on Discord. There is a ton of great people in our Discord community ready to help you! ResourcesLicenseLicensed under the Apache 2.0 license, see |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论