PHPackages                             godforhire/databasenotifications - 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. [Database &amp; ORM](/categories/database)
4. /
5. godforhire/databasenotifications

ActiveLibrary[Database &amp; ORM](/categories/database)

godforhire/databasenotifications
================================

Database notifications driver for Laravel 5.3 and up

1.0.2(6y ago)2891MITPHPPHP &gt;=5.6.4

Since Feb 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/godforhire/databasenotifications)[ Packagist](https://packagist.org/packages/godforhire/databasenotifications)[ Docs](https://github.com/godforhire/databasenotifications)[ RSS](/packages/godforhire-databasenotifications/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Database Notification Channel for Laravel 6
===========================================

[](#database-notification-channel-for-laravel-6)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d192018b5052302f5ff095b0d7420205cb9a7a3d14cb24a0c6eaa7813183045f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676f64666f72686972652f64617461626173656e6f74696669636174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/godforhire/databasenotifications)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/afd284fdada4b31b00296830234958c6923939213f0c6e536874ee7db5e06210/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f676f64666f72686972652f64617461626173656e6f74696669636174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/godforhire/databasenotifications)

This package makes it easy to send database notifications with Laravel 6 and up from third-party packages. Those often allow you to send mail or slack notifications, but with this package you can also send them to the notification table. For others, simply use Laravel's own notifications.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require godforhire/databasenotifications
```

Usage
-----

[](#usage)

Now you can use the channel in your `via()` method inside the notification:

```
use godforhire\DatabaseNotifications\DatabaseChannel;
use godforhire\DatabaseNotifications\DatabaseMessage;
use Illuminate\Notifications\Notification;

class BackupHasFailed extends Notification
{
    public function via($notifiable)
    {
        return [DatabaseChannel::class];
    }

    public function toDatabase($notifiable)
    {
        return DatabaseMessage::create()
                    ->user(1)
                    ->data([
                        'event' => 'Backup failed',
                    	'description' => 'Daily backup of Your App has failed: reason, disk S3 is unreachable.',
                    	'...' => '...'
                    ]);
    }
}
```

### Available Message methods

[](#available-message-methods)

- `user` The user to send the notification to.
- `data` An array with custom fields. This can contain any key value pair you want.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~476 days

Total

3

Last Release

2429d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/396a5af37597be0f8b2ebb96f2319162962d484ed5a398b3da622cb690a55da2?d=identicon)[godforhire](/maintainers/godforhire)

---

Top Contributors

[![godforhire](https://avatars.githubusercontent.com/u/1974013?v=4)](https://github.com/godforhire "godforhire (4 commits)")

### Embed Badge

![Health badge](/badges/godforhire-databasenotifications/health.svg)

```
[![Health](https://phpackages.com/badges/godforhire-databasenotifications/health.svg)](https://phpackages.com/packages/godforhire-databasenotifications)
```

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M186](/packages/spatie-laravel-backup)[kreait/laravel-firebase

A Laravel package for the Firebase PHP Admin SDK

1.3k16.5M42](/packages/kreait-laravel-firebase)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M106](/packages/laravel-cashier)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)[jerome/filterable

Streamline dynamic Eloquent query filtering with seamless API request integration and advanced caching strategies.

19226.1k](/packages/jerome-filterable)[mnabialek/laravel-sql-logger

Log SQL queries in Laravel/Lumen framework

158796.3k2](/packages/mnabialek-laravel-sql-logger)

PHPackages © 2026

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