2017 © Pedro Peláez
 

library informer

Flash Message Support for Laravel.

image

wegnermedia/informer

Flash Message Support for Laravel.

  • Tuesday, July 22, 2014
  • by wegnermedia
  • Repository
  • 2 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Laravel Flash Message Informer

This Package gives you an easy way to flash messages., (*1)

Installation

Per usual, install Commander through Composer., (*2)

"require": {
    "wegnermedia/informer": "dev-master"
}

Next, update app/config/app.php to include a reference to this package's service provider in the providers array., (*3)

'providers' => [
    'Wegnermedia\Informer\InformerServiceProvider'
]

Next, add the facade app/config/app.php., (*4)

'aliases' => [
    'Informer' => 'Wegnermedia\Informer\Facades\Informer'
]

Last, but not least, include the nessesary view partial in your master template, (*5)

@include('Informer::message')

And now build something awesome., (*6)

Usage

<?php

class CartController extends ShopController {

    /**
     * Add Item to Cart.
     *
     * @return Response
     */
    public function addItem()
    {
        // ... adding logic

        // Set the Success Message
        Informer::success('Nice', "You've added {$item->name} successfully to your cart." );

        // ... create the Response
        return Redirect::back();

    }

    /**
     * Reset Cart.
     *
     * @return Response
     */
    public function reset()
    {
        // Set a danger Message and make it modal as well ...
        Informer::danger('Attention', "You're about to delete your cart, you wish to proceed?", true);
    }

}

Done!, (*7)

The Versions

22/07 2014

dev-master

9999999-dev

Flash Message Support for Laravel.

  Sources   Download

MIT

The Requires

 

by Stefan Wegner

laravel message

22/07 2014

1.0.4

1.0.4.0

Flash Message Support for Laravel.

  Sources   Download

MIT

The Requires

 

by Stefan Wegner

laravel message

22/07 2014

1.0.3

1.0.3.0

Flash Message Support for Laravel.

  Sources   Download

MIT

The Requires

 

by Stefan Wegner

laravel message

21/07 2014

1.0.2

1.0.2.0

  Sources   Download

The Requires

 

by Stefan Wegner

21/07 2014

1.0.1

1.0.1.0

  Sources   Download

The Requires

 

by Stefan Wegner

21/07 2014

1.0.0

1.0.0.0

  Sources   Download

The Requires

 

by Stefan Wegner

21/07 2014

0.1.0

0.1.0.0

  Sources   Download

The Requires

 

by Stefan Wegner