PHPackages                             sentry/sentry-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. sentry/sentry-laravel

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

sentry/sentry-laravel
=====================

Laravel SDK for Sentry (https://sentry.io)

4.24.0(1mo ago)1.3k114.3M—0.4%206[21 issues](https://github.com/getsentry/sentry-laravel/issues)[5 PRs](https://github.com/getsentry/sentry-laravel/pulls)20MITPHPPHP ^7.2 | ^8.0CI passing

Since Apr 27Pushed 6d ago49 watchersCompare

[ Source](https://github.com/getsentry/sentry-laravel)[ Packagist](https://packagist.org/packages/sentry/sentry-laravel)[ Docs](https://sentry.io)[ Fund](https://sentry.io/)[ Fund](https://sentry.io/pricing/)[ RSS](/packages/sentry-sentry-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (29)Versions (170)Used By (20)

 [ ![Sentry for Laravel](https://camo.githubusercontent.com/66110725355fa11d9aa1f2044d4d84173274e92177576313d185838b73e6fdc0/68747470733a2f2f73656e7472792d6272616e642e73746f726167652e676f6f676c65617069732e636f6d2f6769746875622d62616e6e6572732f6769746875622d73646b2d6c61726176656c2e706e67) ](https://sentry.io/?utm_source=github&utm_medium=logo)

*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**](https://sentry.io/careers/)*

Official Sentry SDK for Laravel
===============================

[](#official-sentry-sdk-for-laravel)

[![CI](https://github.com/getsentry/sentry-laravel/actions/workflows/ci.yaml/badge.svg)](https://github.com/getsentry/sentry-laravel/actions/workflows/ci.yaml)[![Latest Stable Version](https://camo.githubusercontent.com/2cf66464e74b5e67198c64874406544334ba4a8c1b2fe337c800151a0b3be04e/68747470733a2f2f706f7365722e707567782e6f72672f73656e7472792f73656e7472792d6c61726176656c2f762f737461626c65)](https://packagist.org/packages/sentry/sentry-laravel)[![License](https://camo.githubusercontent.com/15b65fecd16264d1abef892762ab424529548e6e3549ed84e6bf67128df5f501/68747470733a2f2f706f7365722e707567782e6f72672f73656e7472792f73656e7472792d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/sentry/sentry-laravel)[![Total Downloads](https://camo.githubusercontent.com/4b8ac805c9334fbca22a6cb3312218cad8b3510c58cddbb2c73ed702eab2593d/68747470733a2f2f706f7365722e707567782e6f72672f73656e7472792f73656e7472792d6c61726176656c2f646f776e6c6f616473)](https://packagist.org/packages/sentry/sentry-laravel)[![Monthly Downloads](https://camo.githubusercontent.com/ce504160ae30755a1236939b20e35fd6b4c6dce5c6b552ee9b2b529b41a95a2c/68747470733a2f2f706f7365722e707567782e6f72672f73656e7472792f73656e7472792d6c61726176656c2f642f6d6f6e74686c79)](https://packagist.org/packages/sentry/sentry-laravel)[![Discord](https://camo.githubusercontent.com/2da2973533965a9404e5ef0683e6cd8192988281f5860256076294e906b9c40c/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f363231373738383331363032323231303634)](https://discord.gg/cWnMQeA)

This is the official Laravel SDK for [Sentry](https://sentry.io).

Getting Started
---------------

[](#getting-started)

The installation steps below work on versions 12.x and 11.x of the Laravel framework.

For older Laravel versions and Lumen see:

- [Laravel 12.x &amp; 11.x](https://docs.sentry.io/platforms/php/guides/laravel/)
- [Laravel 10.x &amp; 9.x &amp; 8.x](https://docs.sentry.io/platforms/php/guides/laravel/other-versions/laravel8-10/)
- [Laravel 7.x &amp; 6.x](https://docs.sentry.io/platforms/php/guides/laravel/other-versions/laravel6-7/)
- [Laravel 5.x](https://docs.sentry.io/platforms/php/guides/laravel/other-versions/laravel5/)
- [Laravel 4.x](https://docs.sentry.io/platforms/php/guides/laravel/other-versions/laravel4/)
- [Lumen](https://docs.sentry.io/platforms/php/guides/laravel/other-versions/lumen/)

### Install

[](#install)

Install the `sentry/sentry-laravel` package:

```
composer require sentry/sentry-laravel
```

Enable capturing unhandled exception to report to Sentry by making the following change to your `bootstrap/app.php`:

```
