PHPackages                             irabbi360/laravel-log-notifier - 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. irabbi360/laravel-log-notifier

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

irabbi360/laravel-log-notifier
==============================

This is my package laravel-log-notifier

v1.0-beta.18(3mo ago)021MITPHPPHP ^8.1 | ^8.2 | ^8.3CI passing

Since Jan 30Pushed 3mo agoCompare

[ Source](https://github.com/irabbi360/laravel-log-notifier)[ Packagist](https://packagist.org/packages/irabbi360/laravel-log-notifier)[ Docs](https://github.com/irabbi360/laravel-log-notifier)[ GitHub Sponsors](https://github.com/Irabbi360)[ RSS](/packages/irabbi360-laravel-log-notifier/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (12)Versions (20)Used By (0)

Laravel Log Notifier
====================

[](#laravel-log-notifier)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b949d77dc033d6f00023fcd44e9d9e24016800f4dcc3a2123e61b820e9b5facd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6972616262693336302f6c61726176656c2d6c6f672d6e6f7469666965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/irabbi360/laravel-log-notifier)[![GitHub Tests Action Status](https://camo.githubusercontent.com/44e076fcf9b6329a84afe42278ba3e666c87f17509390f06523abbc4961a1df9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6972616262693336302f6c61726176656c2d6c6f672d6e6f7469666965722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/irabbi360/laravel-log-notifier/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/531c36095774d08613b0c7499f18db8ef76bd08cc0d83ae5ccc55a3230e32433/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6972616262693336302f6c61726176656c2d6c6f672d6e6f7469666965722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/irabbi360/laravel-log-notifier/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/95299a4a2dfcbe769836237738b3560b967dc4f8a3837a771b880d092f211858/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6972616262693336302f6c61726176656c2d6c6f672d6e6f7469666965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/irabbi360/laravel-log-notifier)

**Real-time Laravel error monitoring with Toast Notifications**

Laravel Log Notifier is a developer-friendly Laravel package that captures application exceptions and sends **real-time in-app toast notifications** instantly.

It helps you stay informed about errors as they happen, without constantly checking logs or using expensive third-party services like Sentry or Bugsnag.

Key Features
------------

[](#key-features)

- **Real-time Exception Capture** - Instantly detects and captures exceptions
- **Toast Notifications** - In-app alerts appear immediately in top-right corner
- **Global Display** - Works across your entire application, no permissions needed
- **Interactive Modal** - Click notifications to view full error details
- **Smart Pause** - Hover over notifications to pause auto-close timer
- **Sound Alerts** - Optional beep for critical errors
- **Professional UI** - Styled like Laravel's native error page
- **Error Details** - Shows message, file, line number, and full stack trace
- **Lightweight** - No database required, uses simple JSON storage
- **Secure** - Built with Laravel auth in mind
- **Zero Setup** - Works out of the box, no complex configuration
- **Production Ready** - Efficient and reliable error handling

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

[](#installation)

Install via Composer:

```
composer require irabbi360/laravel-log-notifier
```

Publish the config file:

```
php artisan vendor:publish --tag="log-notifier-config"
```

Configuration
-------------

[](#configuration)

Configure your settings in `config/log-notifier.php`:

```
return [
    'enabled' => env('LOG_NOTIFIER_ENABLED', true),

    'levels' => ['error', 'critical', 'alert', 'emergency'],

    'notification' => [
        'title' => 'Laravel Error 🚨',
        'icon' => '/vendor/log-notifier/icon.png',
        'sound' => true, // Play sound on critical errors
    ],
];
```

Quick Start
-----------

[](#quick-start)

### Step 1: Register Exception Handler

[](#step-1-register-exception-handler)

In your `bootstrap/app.php`, add the Log Notifier exception handler:

```
