PHPackages                             tiththa/laravel-notify - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. tiththa/laravel-notify

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

tiththa/laravel-notify
======================

Flexible flash notifications for Laravel L9 Support

v2.2(4y ago)018MITBladePHP &gt;=7.4

Since Nov 5Pushed 4y agoCompare

[ Source](https://github.com/Tiththa/laravel-notify)[ Packagist](https://packagist.org/packages/tiththa/laravel-notify)[ Docs](https://github.com/mckenziearts/laravel-notify)[ Fund](https://paypal.me/jvquilichini?locale.x=fr_FR)[ RSS](/packages/tiththa-laravel-notify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (18)Used By (0)

[![](https://camo.githubusercontent.com/8c3a5224a8c43088f471ab4777cbd32a3c99fc52d6432eeeb8085f48afca86fa/68747470733a2f2f6c61726176656c2e636d2f696d672f6272616e642f6c61726176656c2d6e6f746966792e737667)](https://camo.githubusercontent.com/8c3a5224a8c43088f471ab4777cbd32a3c99fc52d6432eeeb8085f48afca86fa/68747470733a2f2f6c61726176656c2e636d2f696d672f6272616e642f6c61726176656c2d6e6f746966792e737667)

[![Build Status](https://camo.githubusercontent.com/8106cc2a881a306272a05cc755096b350eab9451e8ced0a51f76e3a369251dc0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d636b656e7a6965617274732f6c61726176656c2d6e6f746966792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/mckenziearts/laravel-notify)[![Total Downloads](https://camo.githubusercontent.com/5be8854ce84b0f3c1cd5def42139cd9f8e4d5f3c01f395b1c59d0258f403a80b/68747470733a2f2f706f7365722e707567782e6f72672f6d636b656e7a6965617274732f6c61726176656c2d6e6f746966792f642f746f74616c2e737667)](https://packagist.org/packages/mckenziearts/laravel-notify)[![Latest Stable Version](https://camo.githubusercontent.com/d34d6c09ca60942617715d2ddc17f0501b26139c0f8078dfa5ed5fb9b38837fa/68747470733a2f2f706f7365722e707567782e6f72672f6d636b656e7a6965617274732f6c61726176656c2d6e6f746966792f762f737461626c652e737667)](https://packagist.org/packages/mckenziearts/laravel-notify)[![License](https://camo.githubusercontent.com/6cea64c433517588ddd3682ea90da590b3fc723c771fa42b4a045974dbe13bf4/68747470733a2f2f706f7365722e707567782e6f72672f6d636b656e7a6965617274732f6c61726176656c2d6e6f746966792f6c6963656e73652e737667)](https://packagist.org/packages/mckenziearts/laravel-notify)

Introduction
------------

[](#introduction)

Laravel Notify is a package that lets you add custom notifications to your project. A diverse range of notification design is available.

[![](https://camo.githubusercontent.com/1e364dc548ca271248021716023f9269a24e7de50fa25809e57704a30b1168d7/68747470733a2f2f692e696d6775722e636f6d2f6d5a56566e334c2e706e67)](https://camo.githubusercontent.com/1e364dc548ca271248021716023f9269a24e7de50fa25809e57704a30b1168d7/68747470733a2f2f692e696d6775722e636f6d2f6d5a56566e334c2e706e67)

Version Guidance
----------------

[](#version-guidance)

VersionLaravel versionStatusBranchInstall1.x5.5, 5.6, 5.7, 6.0EOL1.0composer require mckenziearts/laravel-notify 1.\*2.x&gt;= 7.0Latest2.0composer require mckenziearts/laravel-notifyAndroid Version
---------------

[](#android-version)

If you need Android version please try this package [Aesthetic Dialogs](https://github.com/gabriel-TheCode/AestheticDialogs). Happy Coding 👨🏾‍💻

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

[](#installation)

You can install the package using composer

```
$ composer require mckenziearts/laravel-notify
```

Then add the service provider to `config/app.php`. In Laravel versions 5.5 and beyond, this step can be skipped if package auto-discovery is enabled.

```
'providers' => [
    ...
    Mckenziearts\Notify\LaravelNotifyServiceProvider::class
    ...
];
```

You can publish the configuration file and assets by running:

```
$ php artisan vendor:publish --provider="Mckenziearts\Notify\LaravelNotifyServiceProvider"
```

Now that we have published a few new files to our application we need to reload them with the following command:

```
$ composer dump-autoload
```

Usage
-----

[](#usage)

1. Add styles links with `@notifyCss`
2. Add scripts links with `@notifyJs`
3. use `notify()` helper function inside your controller to set a toast notification for info, success, warning or error
4. Include notify partial to your master layout `@include('notify::components.notify')`

If you are on Laravel 7 or greater, you can use the tag syntax.

```

```

### Basic

[](#basic)

Within your controllers, before you perform a redirect call the `notify` method with a message.

```
public function store()
{
    notify()->success('Laravel Notify is awesome!');

    return Redirect::home();
}
```

An complete example:

```

        Laravel Notify
        @notifyCss

        @include('notify::messages')
        // Laravel 7 or greater

        @notifyJs

```

### Type of notifications

[](#type-of-notifications)

Laravel Notify actually display 5 types of notifications

1. `toast` notification, (The default notification for Laravel Notify)

```
notify()->success('Welcome to Laravel Notify ⚡️') or notify()->success('Welcome to Laravel Notify ⚡️', 'My custom title')
```

2. `connectify` notification, example of basic usage

```
connectify('success', 'Connection Found', 'Success Message Here')
```

3. `drakify` (😎) notification, displays an alert only

```
drakify('success') // for success alert
or
drakify('error') // for error alert
```

4. `smilify` notification, displays a simple custom toast notification using the smiley (😊) emoticon

```
smilify('success', 'You are successfully reconnected')
```

5. `emotify` notification, displays a simple custom toast notification using a vector emoticon

```
emotify('success', 'You are awesome, your data was successfully created')
```

#### Preset Notifications

[](#preset-notifications)

If you have a specific notification that is used across multiple different places in your system, you can define it as a preset notification in your config file. This makes it easier to maintain commonly used notifications in one place. Read how to define preset messages in the [Config](#config) section below.

As an example, to use a preset notification you have defined called 'common-notification', use the following:

```
notify()->preset('common-notification')
```

You can override any of the values that are set in the config if you need to. For example, this could be useful if you have a common notification across, but you want to change the icon in one particular place that it's used without having to manually write out a new notification.

To do this, simply pass in an array that has the key of the attribute that you want to override and the value you want to override it with.

As an example, we could override the 'title' of our 'common-notification' by using the following:

```
notify()->preset('common-notification', ['title' => 'This is the overridden title'])
```

Config
------

[](#config)

Config file are located at `config/notify.php` after publishing provider element.

Some awesome stuff. To active `dark mode` update the `theme` config, or add global variable `NOTIFY_THEME` on your .env file

```
'theme' => env('NOTIFY_THEME', 'dark'),
```

You can define preset notifications in the config file using the following structure:

```
'preset-messages' => [
    'user-updated' => [
        'message' => 'The user has been updated successfully.',
        'type'    => 'success',
        'model'   => 'connect',
        'title'   => 'User Updated',
    ],
    'user-deleted' => [
        'message' => 'The user has been deleted successfully.',
        'type'    => 'success',
        'model'   => 'connect',
        'title'   => 'User Deleted',
    ],
],
```

The example above shows the config for two preset notifications: 'user-updated' and 'user-deleted'.

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Arthur Monney](https://arthurmonney.me)
- [All Contributors](../../contributors)

Donate ❤️
---------

[](#donate-heart)

If you use and enjoy Laravel Notify you can encourage the author by

- [Donating today](https://www.paypal.com/paypalme/jvquilichini?locale.x=fr_FR)!.
- Star the project ⭐.

### Donors list:

[](#donors-list)

1. **[Charlie J](https://github.com/Chazza)** - (10,00 $ USD) - `Donation made with love by Charlie from United Kingdom` - 9 October 2020

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 94.5% 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 ~62 days

Recently: every ~167 days

Total

15

Last Release

1510d ago

Major Versions

1.x-dev → v2.02020-08-24

PHP version history (2 changes)v1.0PHP &gt;=7.1

v2.2PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/cfab67cec7654f2af0ecdb757d64f5f5949f1f725561e24cf62d73f424434896?d=identicon)[Tithira](/maintainers/Tithira)

---

Top Contributors

[![mckenziearts](https://avatars.githubusercontent.com/u/14105989?v=4)](https://github.com/mckenziearts "mckenziearts (120 commits)")[![Tiththa](https://avatars.githubusercontent.com/u/24600191?v=4)](https://github.com/Tiththa "Tiththa (2 commits)")[![ash-jc-allen](https://avatars.githubusercontent.com/u/39652331?v=4)](https://github.com/ash-jc-allen "ash-jc-allen (1 commits)")[![CodeLover254](https://avatars.githubusercontent.com/u/15217384?v=4)](https://github.com/CodeLover254 "CodeLover254 (1 commits)")[![amrography](https://avatars.githubusercontent.com/u/9614340?v=4)](https://github.com/amrography "amrography (1 commits)")[![ramonpego](https://avatars.githubusercontent.com/u/6185157?v=4)](https://github.com/ramonpego "ramonpego (1 commits)")[![youssef3wi](https://avatars.githubusercontent.com/u/21143371?v=4)](https://github.com/youssef3wi "youssef3wi (1 commits)")

---

Tags

laravelnotificationlaravel-notify

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tiththa-laravel-notify/health.svg)

```
[![Health](https://phpackages.com/badges/tiththa-laravel-notify/health.svg)](https://phpackages.com/packages/tiththa-laravel-notify)
```

###  Alternatives

[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[brian2694/laravel-toastr

toastr.js for Laravel

136649.4k5](/packages/brian2694-laravel-toastr)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)

PHPackages © 2026

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