New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

helmesvs/laravel-notify

Elegant notifications to laravel with Toastr or PNotify
28,721 61

Larablocks Analysis

helmesvs/laravel-notify works with Laravel 5 (latest release v1.1.0, Oct 17, 2017), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Oct 17, 2017)
  • 107 downloads a month (needs 10,000)
  • 61 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Oct 17, 2017.
  • No releases in the last 12 months.
  • First released: Oct 2, 2017.
  • Monthly downloads: 107, down 17% from six months ago.
  • 4 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.

Install
composer require helmesvs/laravel-notify
Latest Version:v1.1.0
PHP:>=5.4.0
Laravel:5
License:MIT
Last Updated:Nov 20, 2019
Links: GitHub  ·  Packagist
Maintainer: helmesvs

Laravel Notify

Elegant notifications to laravel with Toastr or PNotify

alt text

Installation

  1. Either run composer require helmesvs/laravel-notify or add "helmesvs/laravel-notify" to the require key in composer.json and run composer install.
  2. Add Helmesvs\Notify\NotifyServiceProvider::class, to the providers key in config/app.php.
  3. Add 'Notify' => Helmesvs\Notify\Facades\Notify::class, to the aliases key in config/app.php.
  4. Run php artisan vendor:publish --provider="Helmesvs\Notify\NotifyServiceProvider" --tag="notify" to publish the config file.
  5. Include the output {!! Notify::render() !!} in your master view template.
  6. Optional: Modify the configuration file located in config/notify.php.

Usage

Call one of these methods in your controllers to insert a notification:

  • Notify::warning($message, $title = null, $options = []) - add a warning notification
  • Notify::error($message, $title = null, $options = []) - add an error notification
  • Notify::info($message, $title = null, $options = []) - add an info notification
  • Notify::success($message, $title = null, $options = []) - add a success notification
  • Notify::add($type: warning|error|info|success, $message, $title = null, $options = []) - add a notification
  • Notify::clear() - clear all current notification

Configuration

Open config/notify.php to adjust package configuration. If this file doesn't exist, run php artisan vendor:publish --provider="Helmesvs\Notify\NotifyServiceProvider" --tag="notify" to create the default configuration file.

General Options

'options' => [
        'lib' => 'toastr',
        'style' => 'custom'
]

Set 'lib' as toastr to use toastr.js or pnotify to use pnotify.js.

Set 'style' to 'custom' to use custom settings, or as 'default' to default library settings.

The style of notifications can be customized in public/vendor/Notify/style.css.

Options Toastr

'ToastrOptions' => [
        "closeButton" => false,
        "closeHtml" => '',
        "newestOnTop" => true,
        "progressBar" => false,
        ...
]

Options PNotify

'PNotifyOptions' => [
        'title_escape' => false,
        'text_escape' => false,
        'styling' => 'brighttheme',
        'addclass' => '', 
        ...
]

For a list of available options, see toastr.js' documentation and pnotify.js' documentation.

Alternatives to helmesvs/laravel-notify

brian2694/laravel-toastr

toastr.js for Laravel

948,843 128
tjgazel/laravel-toastr

Toastr notifications for laravel 5.5+, 6 and 7

13,601 15
nilsenj/toastr-5.1-laravel

toastr.js for Laravel 5.1/5.2 easy notification like growl for example

34,796 6

Version History

Version Released PHP Laravel License
v1.1.0 >=5.4.0 >=5.0.0 MIT
v1.0.2 >=5.4.0 >=5.0.0 MIT
v1.0.1 >=5.4.0 >=5.0.0 MIT
v1.0.0 >=5.4.0 >=5.0.0 MIT