2017 © Pedro Peláez
 

library laravel-flash-messages

Laravel package for Creating Better Flash Messages.

image

helilabs/laravel-flash-messages

Laravel package for Creating Better Flash Messages.

  • Saturday, April 22, 2017
  • by manssour.mohammed
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Flash Messages Class Helper

This a helper class to add flash messages functionality to laravel, (*1)

What are flash messages?

Flash Messages are ordinary messages that can be available for 1 request only per user, (*2)

Why bother?

yii has a great flash functionality but laravel hasn't, so i tried to look for a flash library for laravel and i ended up using laracasts flash library. When I used it i found a little problem. YOU CANNOT CREATE TWO FLASH MESSAGES for one request for example if you want to send an info flsh message to user and another success flash message in the same time simply you can't cause the library will overrid the first one., (*3)

Installation

  • in your composer file add
"helilabs/laravel-flash-messages" : "0.1.0"
  • open config/app.php and add the following
    • in providers add 'Helilabs\FlashMessages\FlashMessagesServiceProvider'
    • in aliases add 'Flash' => 'Helilabs\FlashMessages\FlashMessagesFacade'

Usage

to set a new flash message use;, (*4)

Flash::setType('info|success|warning|danger')->setMessage('Message Here')->create();

to get all flash messages use {{ Flash::get() }}, (*5)

The Versions

22/04 2017

dev-master

9999999-dev

Laravel package for Creating Better Flash Messages.

  Sources   Download

MIT

The Requires

 

by Mohammed Manssour

laravel flash-messages

22/04 2017

1.0

1.0.0.0

Laravel package for Creating Better Flash Messages.

  Sources   Download

MIT

The Requires

 

by Mohammed Manssour

laravel flash-messages