2017 © Pedro Peláez
 

library notify

Notify is a package to rapidly notificate your users about something using Bootstrap classes

image

mascame/notify

Notify is a package to rapidly notificate your users about something using Bootstrap classes

  • Friday, March 3, 2017
  • by marcmascarell
  • Repository
  • 1 Watchers
  • 1 Stars
  • 176 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Laravel Notify

Notify is a package to rapidly notificate your users about something using Bootstrap classes, (*1)

A nice alternative if this don't satisfy your needs, (*2)

Installation

Require this package in your composer.json and run composer update:, (*3)

"mascame/notify": "dev-master"

Add to app/config:, (*4)

// the Service Provider
'Mascame\Notify\NotifyServiceProvider'

// the alias
'Notify' => '\Mascame\Notify\Notify'

Publish assets and config, (*5)

php artisan config:publish mascame/notify

Usage

  • Require bootstrap or compatible framework.
  • Edit config file to your needs.

In template:, (*6)

Notify::all();

// blade
{{ Notify::all(); }}

In your logic:, (*7)

// $autohide = false, $icon = null, $dismissable = false

Notify::success('Successfuly notified!');
Notify::danger('Real danger!');
Notify::info('Informed!');
Notify::warning('Warning!');
Notify::loading('Loading...');

Notify::add($value, $type = 'success', $autohide = false, $icon = null, $dismissable = false);

A real world example:, (*8)

// this will autohide and get the default values for icon and dismissable

public function logout()
{
    Auth::logout();
    Notify::success('Successfuly logged out!', true);

    return Redirect::to('home');
}

License

MIT, (*9)

The Versions

03/03 2017

dev-laravel4

dev-laravel4 https://github.com/marcmascarell/laravel-notify

Notify is a package to rapidly notificate your users about something using Bootstrap classes

  Sources   Download

MIT

The Requires

 

by Marc Mascarell

laravel bootstrap notifier notifications notify notificator

03/03 2017

v0.1.0

0.1.0.0 https://github.com/marcmascarell/laravel-notify

Notify is a package to rapidly notificate your users about something using Bootstrap classes

  Sources   Download

MIT

The Requires

 

by Marc Mascarell

laravel bootstrap notifier notifications notify notificator

10/10 2014

dev-master

9999999-dev https://github.com/marcmascarell/laravel-notify

Notify is a package to rapidly notificate your users about something using Bootstrap classes

  Sources   Download

MIT

The Requires

 

by Marc Mascarell

laravel bootstrap notifier notifications notify notificator

10/10 2014

v1.0.0

1.0.0.0 https://github.com/marcmascarell/laravel-notify

Notify is a package to rapidly notificate your users about something using Bootstrap classes

  Sources   Download

MIT

The Requires

 

by Marc Mascarell

laravel bootstrap notifier notifications notify notificator