2017 © Pedro Peláez
 

library laravel-flash

Sun Flash helps you to add flash messages to your Laravel application.

image

sun/laravel-flash

Sun Flash helps you to add flash messages to your Laravel application.

  • Thursday, April 14, 2016
  • by IftekherSunny
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1,785 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Sun Flash

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

Sun Flash message helps you to add flash messages to your Laravel application., (*2)

Installation Process

In order to install Sun Flash, just add, (*3)

 "sun/laravel-flash": "1.*"

to your composer.json. Then run composer install or composer update., (*4)

Then in your config/app.php add, (*5)

 Sun\Flash\FlashServiceProvider::class,

in the providers array and, (*6)

 'Flash' => Sun\Flash\FlashFacade::class,

to the aliases array., (*7)

and also added Sun Flash message view where you want to show flash message., (*8)

 @include('sun::flash')

To Publish Sun Flash View

 php artisan vendor:publish

In the Sun Flash message view I used Bootstrap css framework for flash message styling. You also need to add bootstrap to your project., (*9)

Bootstrap css, js and jQuery cdn
 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
 <script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

Add this line at the bottom of your page, (*10)

```html , (*11)

 })

```, (*12)

All Methods

To show success message
Flash::success('Hello');
To show error message
Flash::error('Whoops! There were some problems with your input.');
To show info message
Flash::info('your message');
To show warning message
Flash::warning('your message');
To show confirm message
Flash::confirm('Message Title', 'Your Message');
To show bootstrap modal popup message
Flash::overlay(
                 'Message Title',
                 'Your Message',
                 true,
                 'Allow Button Text',
                 'Allow Button Type',
                 'Dismiss Button Text',
                 'Dismiss Button Type
                 );

Defalut value for --, (*13)

 Submit Button = false
 Allow Button Text = Save
 Allow Button Type = success
 Dismiss Button Text = Close
 Dismiss Button Type = default

Screenshots

Flash Message Overlay:

Overlay view, (*14)

Flash Message Success:

Overlay view, (*15)

Flash Message Error:

Overlay view, (*16)

License

This package is licensed under the MIT License, (*17)

The Versions

14/04 2016

dev-master

9999999-dev

Sun Flash helps you to add flash messages to your Laravel application.

  Sources   Download

MIT

The Requires

 

laravel php bootstrap message flash flash message

14/04 2016

v1.4

1.4.0.0

Sun Flash helps you to add flash messages to your Laravel application.

  Sources   Download

MIT

The Requires

 

laravel php bootstrap message flash flash message

09/04 2016

v1.3

1.3.0.0

Sun Flash helps you to add flash messages to your Laravel application.

  Sources   Download

MIT

The Requires

 

laravel php bootstrap message flash flash message

07/09 2015

v1.2

1.2.0.0

Sun Flash helps you to add flash messages to your Laravel application.

  Sources   Download

MIT

The Requires

 

laravel php bootstrap message flash flash message

15/07 2015

v1.1

1.1.0.0

Sun Flash helps you to add flash messages to your Laravel application.

  Sources   Download

MIT

The Requires

 

laravel php bootstrap message flash flash message

14/07 2015

v1.0

1.0.0.0

Sun Flash helps you to add flash messages to your Laravel application.

  Sources   Download

MIT

The Requires