2017 © Pedro Peláez
 

library laflash

Laravel flash message package"

image

crazyinventor/laflash

Laravel flash message package"

  • Wednesday, April 12, 2017
  • by CrazyInventor
  • Repository
  • 1 Watchers
  • 0 Stars
  • 85 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Laravel Flash

Flash message package for Laravel with customizable message groups (levels)., (*1)

Installation

Run 'composer require crazyinventor/laflash' or modify your composer.json:, (*2)

{
    "require": {
        "crazyinventor/laflash": "*"
    }
}

Configuration

Laravel 5.0

In /config/app.php, add the following to providers:, (*3)

'CrazyInventor\LaFlash\FlashServiceProvider',

and the following to aliases:, (*4)

'Flash' => 'CrazyInventor\LaFlash\FlashFacade',

Laravel 5.1 and newer

In /config/app.php, add the following to providers:, (*5)

CrazyInventor\LaFlash\FlashServiceProvider::class,

and the following to aliases:, (*6)

'Flash' => CrazyInventor\LaFlash\FlashFacade::class,

Configuration file

Publish the flash configuration file by running the following command from a shell inside your Laravel's installation directory:, (*7)

php artisan vendor:publish

This will create the file config/flash.php in your Laravel's installation directory. You can customize the levels you would like to use., (*8)

Usage

Flash::hasMessages($level = false)

Check if there are available messages. If you define a level, only messages for that level will be considered., (*9)

Flash::getMessages($level = false)

Get all available messages. If you define a level, only messages for that level will be returned., (*10)

Flash::getLevels()

Get all available levels you can log to., (*11)

Flash::LEVEL

Store a message for the given leven., (*12)

The Versions

12/04 2017

dev-master

9999999-dev

Laravel flash message package"

  Sources   Download

The Requires

 

12/04 2017

1.3

1.3.0.0

Laravel flash message package"

  Sources   Download

The Requires

 

02/11 2016

1.2

1.2.0.0

Laravel flash message package"

  Sources   Download

The Requires

 

02/11 2016

1.0.1

1.0.1.0

Laravel flash message package"

  Sources   Download

The Requires

 

02/11 2016

1.1

1.1.0.0

Laravel flash message package"

  Sources   Download

The Requires

 

02/11 2016

1.0

1.0.0.0

Laravel flash message package"

  Sources   Download

The Requires

 

02/11 2016

0.2

0.2.0.0

Laravel flash message package"

  Sources   Download

The Requires

 

02/11 2016

0.1

0.1.0.0

Laravel flash message package"

  Sources   Download

The Requires