New

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

ghanem/notify

Laravel 5 Flash Notifications with icons and animations and with a timeout
24 3

Larablocks Analysis

ghanem/notify works with any PHP project: the latest release (v1.01, Jun 30, 2017) doesn't depend on Laravel.

Recommendation checks

Not advised

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

  • No release or commit in over 2 years
  • No release in the last 12 months (last: Jun 30, 2017)
  • 0 downloads a month (needs 10,000)
  • 3 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Jun 30, 2017.
  • No releases in the last 12 months.
  • First released: Jun 30, 2017.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 26, 2026.

Install
composer require ghanem/notify
Latest Version:v1.01
PHP:>=5.4.0
License:MIT
Last Updated:Jun 30, 2017
Links: GitHub  ·  Packagist
Maintainer: ghanem

Notify (Laravel)

Notify alert boxes to the browser and give it a timeout to fly out. Works great to notify the user after a successfull action (CRUD). Flash the information from Laravel or create multiple from javascript.

Installation

First, pull in the package through Composer.

"require": {
	"ghanem/notify": "1.*"
}

OR

composer require ghanem/notify

Include the service provider within config\app.php.

'providers' => [
	Ghanem\Notify\NotifyServiceProvider::class,
];

Add a facade alias or use the globel helper function notify().

'aliases' => [
	'Notify' => Ghanem\Notify\Facades\Notify::class,
];

Usage

Within any view file (preferable your master layout).

@include('notify::notify')


Within any Controller.

public function index()
{
    // helper function - default to the 'info'
    notify('Content');

    // return object first
    notify()->info('Content');

    // via the facade
    Notify::info('Content');
    
    return view('home');
}

The different 'levels' are:

  • notify()->info('Content');
  • notify()->success('Content');
  • notify()->warning('Content');
  • notify()->error('Content');

The different arguments:

  • notify()->info('contnent', 10000, false); // without Cansel button

If you need to modify the view partial, you can run:

php artisan vendor:publish --provider="Ghanem\Notify\NotifyServiceProvider" --tag=view

The view partial can be found here resources\views\vendor\notify\notify.blade.

You need to publish the assets.

php artisan vendor:publish --provider="Ghanem\Notify\NotifyServiceProvider" --tag=public

Find the files here public\vendor\notify\. Move the mp3s to public\sounds\. If you use Laravel Elixir, move the css and js to your resource\assets and include them in your gulpfile.js, otherwise link to the individual files in your html header.

Note

Please keep in mind this is for my personal workflow and might not fit your need. I developed this to help speed up my day to day workflow. Please let me know about any issues or if you have any suggestions.

My other Packages

Alternatives to ghanem/notify

gbuckingham89/laraflash

A package for handling flash messages / notifications in Laravel.

57,152 0
edvinaskrucas/notification

Package for Laravel for helping to manage flash / instant notifications / messag...

405,233 518
devmarketer/laraflash

A powerful and flexible flash notifications system. Improving over built-in Lara...

11,815 64

Version History

Version Released PHP License
v1.01 >=5.4.0 MIT
V1.0 >=5.4.0 MIT