PHPackages                             coderslab/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. coderslab/laravel-notify

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

coderslab/laravel-notify
========================

Flexible flash notifications for Laravel

058Blade

Since Oct 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kitron96/laravel-notify-master)[ Packagist](https://packagist.org/packages/coderslab/laravel-notify)[ RSS](/packages/coderslab-laravel-notify/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![](https://camo.githubusercontent.com/8ef34f284f56e5157d59dea3b752b9042cea56e73fb6ce47a669e4b217f5cead/68747470733a2f2f6c61726176656c2e636d2f696d616765732f6c61726176656c2d6e6f746966792e737667)](https://camo.githubusercontent.com/8ef34f284f56e5157d59dea3b752b9042cea56e73fb6ce47a669e4b217f5cead/68747470733a2f2f6c61726176656c2e636d2f696d616765732f6c61726176656c2d6e6f746966792e737667)

 [![Total Downloads](https://camo.githubusercontent.com/a23c902e115547e4fa4b06aac69ef8955845dbc0673d5583eb41c6bf9fbf825f/68747470733a2f2f706f7365722e707567782e6f72672f636f646572736c61622f6c61726176656c2d6e6f746966792f642f746f74616c2e737667)](https://packagist.org/packages/coderslab/laravel-notify) [![Latest Stable Version](https://camo.githubusercontent.com/89475cb5bdcd7291db6171a1f375e8b047ddd7dae5a6de170f39edf6f76ef002/68747470733a2f2f706f7365722e707567782e6f72672f636f646572736c61622f6c61726176656c2d6e6f746966792f762f737461626c652e737667)](https://packagist.org/packages/coderslab/laravel-notify) [![License](https://camo.githubusercontent.com/f7fc8a5ef809724742a6351083dd1836411f7d68491038fe360829815e9251e1/68747470733a2f2f706f7365722e707567782e6f72672f636f646572736c61622f6c61726176656c2d6e6f746966792f6c6963656e73652e737667)](https://packagist.org/packages/coderslab/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)

Android 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 coderslab/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' => [
    ...
    coderslab\Notify\LaravelNotifyServiceProvider::class
    ...
];
```

You can publish the configuration file and assets by running:

```
$ php artisan vendor:publish --provider="coderslab\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 8 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();
}
```

A complete example:

```

        Laravel Notify
        @notifyCss

        @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://twitter.com/MonneyArthur)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/460d98647de0a0cb0dde51443c53ef7119a216a661c4fdd802d30f29b290d452?d=identicon)[kitron](/maintainers/kitron)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

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

PHPackages © 2026

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