PHPackages                             kiwilan/sentinel-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. kiwilan/sentinel-laravel

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

kiwilan/sentinel-laravel
========================

PHP package for Laravel to send errors to Sentinel.

0.0.33(2y ago)062[3 PRs](https://github.com/kiwilan/sentinel-laravel/pulls)MITPHPPHP ^8.1

Since Jul 24Pushed 2y agoCompare

[ Source](https://github.com/kiwilan/sentinel-laravel)[ Packagist](https://packagist.org/packages/kiwilan/sentinel-laravel)[ Docs](https://github.com/kiwilan/sentinel-laravel)[ RSS](/packages/kiwilan-sentinel-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (14)Versions (12)Used By (0)

Sentinel for Laravel
====================

[](#sentinel-for-laravel)

[![PHP Version](https://camo.githubusercontent.com/2d44ab343cf5a2aab849b6954ee31dd09ba1f1f11bf0f168ccd08e186ec060b1/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f7374796c653d666c6174266c6162656c3d504850266d6573736167653d76382e3126636f6c6f723d373737424234266c6f676f3d706870266c6f676f436f6c6f723d666666666666266c6162656c436f6c6f723d313831383162)](php-version-href)[![Laravel Version](https://camo.githubusercontent.com/084643e5f1067abb13ef4c298810b78045ad20633d1066c49a7916978219c134/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f7374796c653d666c6174266c6162656c3d4c61726176656c266d6573736167653d76313026636f6c6f723d464632443230266c6f676f3d6c61726176656c266c6f676f436f6c6f723d666666666666266c6162656c436f6c6f723d313831383162)](laravel-version-href)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8c0dd599d52e56c14f2f796eb208804eb251a976126b476efdbf53ceed077534/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6977696c616e2f73656e74696e656c2d6c61726176656c2e7376673f7374796c653d666c617426636f6c6f72413d31383138314226636f6c6f72423d373737424234)](version-href)[![GitHub Tests Action Status](https://camo.githubusercontent.com/89f5d859190cd4a66b91a77da300f8d03367336587186f7d219b9d7b1251d0ce/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b6977696c616e2f73656e74696e656c2d6c61726176656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c6174266c6162656c436f6c6f723d313831383162)](tests-href)[![Total Downloads](https://camo.githubusercontent.com/7dd85d879ef5f685a0bd1c58796ed0304e47f36185424576051ce6920db1a4d6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6977696c616e2f73656e74696e656c2d6c61726176656c2e7376673f7374796c653d666c617426636f6c6f72413d31383138314226636f6c6f72423d373737424234)](downloads-href)[![License](https://camo.githubusercontent.com/0b7bd2e6b9c0e9a330bc56f9f248a6ab3b1989b1967987bbde3585bd9e9bf793/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6b6977696c616e2f73656e74696e656c2d6c61726176656c2e7376673f7374796c653d666c617426636f6c6f72413d31383138314226636f6c6f72423d373737424234)](https://github.com/kiwilan/sentinel-laravel/blob/main/README.md)[![codecov](https://camo.githubusercontent.com/d6a3372861fcc7325bbc80bb7445002b8575f657f206af31228d862762dbeb09/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f6b6977696c616e2f73656e74696e656c2d6c61726176656c2f6d61696e3f7374796c653d666c617426636f6c6f72413d31383138314226636f6c6f72423d373737424234)](https://codecov.io/gh/kiwilan/sentinel-laravel)

PHP package for Laravel to send errors to [**Sentinel**](https://github.com/kiwilan/sentinel).

Note

[**Sentinel**](https://github.com/kiwilan/sentinel) is an open-source error tracking tool.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require kiwilan/sentinel-laravel
```

You can publish the config file with:

```
php artisan vendor:publish --tag="sentinel-config"
```

This is the contents of the published config file:

```
return [
    /**
     * If you want to disable Sentinel, set `SENTINEL_ENABLED` to `false`.
     */
    'enabled' => env('SENTINEL_ENABLED', true),
    /**
     * Sentinel host where your application is registered.
     */
    'host' => env('SENTINEL_HOST', 'http://app.sentinel.test'),
    /**
     * Token is used to authenticate your application with Sentinel.
     */
    'token' => env('SENTINEL_TOKEN'),
    /**
     * If you want to throw Sentinel errors for debug, set `SENTINEL_DEBUG` to `true`.
     * WARNING: do not use it on production.
     */
    'debug' => env('SENTINEL_DEBUG', false),
];
```

Usage
-----

[](#usage)

### Automatic

[](#automatic)

Just execute the `sentinel:install` Artisan command. It will automatically install the package and configure it for you.

```
php artisan sentinel:install
```

### Manual

[](#manual)

In `app/Exceptions/Handler.php`

```
