PHPackages                             mhamed/laravel-slack-errors-watch - 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. mhamed/laravel-slack-errors-watch

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

mhamed/laravel-slack-errors-watch
=================================

Automatic Slack error reporting for Laravel applications

v1.0.0(3mo ago)0892↓48.3%MITPHPPHP ^8.1

Since Feb 13Pushed 3mo agoCompare

[ Source](https://github.com/mahmoud-mhamed/laravel-slack-errors-watch)[ Packagist](https://packagist.org/packages/mhamed/laravel-slack-errors-watch)[ RSS](/packages/mhamed-laravel-slack-errors-watch/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel Slack Errors Watch
==========================

[](#laravel-slack-errors-watch)

Automatic Slack error reporting for Laravel applications. Get instant Slack notifications for every unhandled exception — zero manual setup required.

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

[](#installation)

```
composer require mhamed/laravel-slack-errors-watch
```

Laravel will auto-discover the package. No need to register any service provider manually.

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

[](#configuration)

### 1. Create a Slack Webhook URL

[](#1-create-a-slack-webhook-url)

1. Go to
2. Click **Create New App** → **From scratch**
3. Give it a name (e.g. "Exception Bot") and select your workspace
4. In the left sidebar, click **Incoming Webhooks**
5. Toggle **Activate Incoming Webhooks** to **On**
6. Click **Add New Webhook to Workspace**
7. Select the channel where you want error reports posted and click **Allow**
8. Copy the **Webhook URL** (it looks like `https://hooks.slack.com/services/T.../B.../xxxx`)

### 2. Add the Webhook URL to `.env`

[](#2-add-the-webhook-url-to-env)

```
LOG_SLACK_WEBHOOK_URL=https://hooks.slack.com/services/T.../B.../xxxx
```

That's it. The package will automatically report all unhandled exceptions to your Slack channel.

Optional Configuration
----------------------

[](#optional-configuration)

Publish the config file to customize behavior:

```
php artisan vendor:publish --tag=slack-errors-watch-config
```

This creates `config/slack-errors-watch.php` with the following options:

OptionDefaultDescription`enable_production``true`Send reports in production`enable_local``false`Send reports in local environment`auto_report_exceptions``true`Auto-register in exception handler`ignore``[]`Exception classes to skip (see below)`log_channel``'slack'`Logging channel name`slack_channel_config`*(see below)*Default Slack channel config### Ignoring Exceptions

[](#ignoring-exceptions)

Add exception classes to the `ignore` array to prevent them from being reported to Slack. It uses `instanceof`, so ignoring a parent class also ignores all its subclasses.

```
'ignore' => [
    \Symfony\Component\HttpKernel\Exception\NotFoundHttpException::class,
    \Illuminate\Auth\AuthenticationException::class,
    \Illuminate\Database\Eloquent\ModelNotFoundException::class,
    \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException::class,
],
```

### Default Slack Channel Config

[](#default-slack-channel-config)

If your app doesn't already define a `slack` logging channel, the package creates one automatically using `slack_channel_config`:

```
'slack_channel_config' => [
    'driver'   => 'slack',
    'url'      => env('LOG_SLACK_WEBHOOK_URL'),
    'username' => 'Exception Bot',
    'emoji'    => ':boom:',
    'level'    => 'error',
],
```

Usage
-----

[](#usage)

### Automatic (default)

[](#automatic-default)

With `auto_report_exceptions` enabled, every unhandled exception is reported to Slack automatically. No code changes needed.

### Manual

[](#manual)

```
use Mhamed\SlackErrorsWatch\Facades\SlackErrorsWatch;

// Report an exception
SlackErrorsWatch::logException($exception);

// Send an info message
SlackErrorsWatch::slackLogInfo('Deployment completed successfully');
```

License
-------

[](#license)

MIT

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance82

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

94d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d00c2f8ae29401e1b578e1435eae2629802a0c10e8322e5cb12d701538ff971?d=identicon)[mahmoud-mhamed](/maintainers/mahmoud-mhamed)

---

Top Contributors

[![mahmoud-mhamed](https://avatars.githubusercontent.com/u/45818696?v=4)](https://github.com/mahmoud-mhamed "mahmoud-mhamed (4 commits)")

---

Tags

laravelmonitoringslackerrorsexceptions

### Embed Badge

![Health badge](/badges/mhamed-laravel-slack-errors-watch/health.svg)

```
[![Health](https://phpackages.com/badges/mhamed-laravel-slack-errors-watch/health.svg)](https://phpackages.com/packages/mhamed-laravel-slack-errors-watch)
```

###  Alternatives

[bugsnag/bugsnag-laravel

Official Bugsnag notifier for Laravel applications.

90334.6M36](/packages/bugsnag-bugsnag-laravel)[tylercd100/lern

LERN (Laravel Exception Recorder and Notifier) is a Laravel 5 package that will record exceptions into a database and will notify you via Email, Pushover or Slack.

438153.4k3](/packages/tylercd100-lern)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.2M](/packages/honeybadger-io-honeybadger-laravel)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)[kssadi/log-tracker

A powerful, intuitive, and efficient log viewer for Laravel applications.

264.8k](/packages/kssadi-log-tracker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
