2017 © Pedro Peláez
 

library flash-notifications

Elegant Flash Notifications For Laravel

image

srmklive/flash-notifications

Elegant Flash Notifications For Laravel

  • Friday, September 1, 2017
  • by srmklive
  • Repository
  • 1 Watchers
  • 5 Stars
  • 653 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 12 % Grown

The README.md

Flash Notifications

Laravel 5 flash notifications, originally developed after the Laracasts video tutorial : Elegant Flash Messaging which uses SweetAlert., (*1)

Quick Installation

Run the following command to install the package through Composer., (*2)

composer require srmklive/flash-notifications

or in your composer.json file, add "srmklive/flash-notifications": ">=0.1" then run, (*3)

composer update

Once this operation is complete, simply add both the service provider and facade classes to your project's config/app.php file:, (*4)

Service Provider

'Srmklive\FlashAlert\FlashAlertServiceProvider',  // Laravel 5.0
Srmklive\FlashAlert\FlashAlertServiceProvider::class, // Laravel 5.1 or greater

Facade

'FlashAlert' => 'Srmklive\FlashAlert\Facades\FlashAlert', // Laravel 5.0
'FlashAlert' => Srmklive\FlashAlert\Facades\FlashAlert::class,  // Laravel 5.1 or greater

Publish Configuration & Views

php artisan vendor:publish

Usage

Simply call on FlashAlert to set your desired flash notification. There are a number of methods to assign different levels of priority (info, success, warning, and error)., (*5)

Success

FlashAlert::success('Success', 'This is a success message.');

Info

FlashAlert::info('Info', 'This is an info message.');

Warning

FlashAlert::warning('Warning', 'This is a warning message.');

Error

FlashAlert::error('Error', 'This is an error message.');

Rendering

To render your flash notifications in your view, simply include the view partial in your master layout. Also add @yield('styles') & yield('scripts') in your master layout:, (*6)

@include('flashalert::alert')

The Versions

01/09 2017

dev-master

9999999-dev

Elegant Flash Notifications For Laravel

  Sources   Download

MIT

by Raza Mehdi

01/09 2017

v0.1.5

0.1.5.0

Elegant Flash Notifications For Laravel

  Sources   Download

MIT

by Raza Mehdi

08/04 2016

v0.1.3

0.1.3.0

Elegant Flash Notifications For Laravel

  Sources   Download

MIT

by Raza Mehdi

02/02 2016

v0.1.2

0.1.2.0

Elegant Flash Notifications For Laravel

  Sources   Download

MIT

by Raza Mehdi

31/10 2015

v0.1.1

0.1.1.0

Elegant Flash Notifications For Laravel

  Sources   Download

MIT

by Raza Mehdi

29/10 2015

v0.1

0.1.0.0

Elegant Flash Notifications For Laravel

  Sources   Download

MIT

by Raza Mehdi