2017 © Pedro Peláez
 

library laravel-notifications

Notifications package for laravel 4.x

image

ipunkt/laravel-notifications

Notifications package for laravel 4.x

  • Wednesday, January 14, 2015
  • by rokde
  • Repository
  • 4 Watchers
  • 2 Stars
  • 155 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 8 % Grown

The README.md

Notification package for Laravel 4.x

Latest Stable Version Latest Unstable Version License Total Downloads, (*1)

Thanks to Jeffrey Way (https://laracasts.com/lessons/flexible-flash-messages), (*2)

Installation

Add to your composer.json following lines, (*3)

"require": {
    "ipunkt/laravel-notifications": "~2.*"
}

Add 'Ipunkt\LaravelNotifications\NotificationsServiceProvider', to providers in app/config/app.php., (*4)

Add 'Flash' => 'Ipunkt\LaravelNotifications\NotificationsFacade', to aliases in app/config/app.php., (*5)

Usage

In controller action use following statement to make a flash notification:, (*6)

//  flashing an info message
Flash::message('Welcome');

//  flashing an info message
Flash::info('Welcome');

//  flashing a success message
Flash::success('Welcome');

//  flashing an error message
Flash::error('Welcome');

//  flashing an overlaying message
Flash::overlay('Welcome');

You can also use translatable messages:, (*7)

Flash::message('app.errors.input_invalid');

In your view or layout template (e.g. a blade template) include the view of your choice:, (*8)

@include('laravel-notifications::bootstrap-3/flash')

You can publish the views and modify it to your needs (optional):, (*9)

$> php artisan view:publish ipunkt/laravel-notifications

Credits

All credits goes to Jeffrey Way and https://laracasts.com. We add translations for views, translating message string and split various templates as package content., (*10)

The Versions

14/01 2015

dev-master

9999999-dev

Notifications package for laravel 4.x

  Sources   Download

MIT

The Requires

 

by Robert Kummer

laravel php messages notification

14/01 2015

2.0.2

2.0.2.0

Notifications package for laravel 4.x

  Sources   Download

MIT

The Requires

 

by Robert Kummer

laravel php messages notification

18/11 2014

2.0.1

2.0.1.0

Notifications package for laravel 4.x

  Sources   Download

MIT

The Requires

 

by Robert Kummer

laravel php messages notification

18/11 2014

2.0.0

2.0.0.0

Notifications package for laravel 4.x

  Sources   Download

MIT

The Requires

 

by Robert Kummer

laravel php messages notification

07/06 2014

1.0.0

1.0.0.0

Notifications package for laravel 4.x

  Sources   Download

MIT

The Requires

 

by Robert Kummer

laravel php messages notification