2017 © Pedro Peláez
 

library ao-alert

Resources for Alerts with Laravel 5.* + Bootstrap 3

image

alex-oliveira/ao-alert

Resources for Alerts with Laravel 5.* + Bootstrap 3

  • Tuesday, February 14, 2017
  • by alex-oliveira
  • Repository
  • 1 Watchers
  • 0 Stars
  • 58 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Ao-Alert

Resources for Alerts with Laravel 5.1 + Bootstrap 3, (*1)

1) Installation

$ composer require alex-oliveira/ao-alert

2) config/app.php

'providers' => [
    /*
     * Vendors Service Providers...
     */
    AoAlert\AlertServiceProvider::class,
],
'aliases' => [
    /*
     * Vendors Facades...
     */
    'Alert' => AoAlert\AlertFacade::class,
],

3) Using

Showing alerts in your template or view., (*2)

{!! alert()->show() !!}

Add new messages in session., (*3)

alert()->info('message');
alert()->success('message');
alert()->warning('message');
alert()->danger('message');

Add multiple messages., (*4)

alert()->info(['message a', 'message b', 'message c']);

Add message with multiple topics., (*5)

alert()->danger('message', ['topic a', 'topic b', 'topic c']);

Add new custom messages in session., (*6)

/* CSS */
.alert-custom{
    background: #ccc
}

/* PHP */
alert()->add('alert-custom', 'message');

The Versions

14/02 2017

dev-master

9999999-dev http://github.com/alex-oliveira/ao-alert

Resources for Alerts with Laravel 5.* + Bootstrap 3

  Sources   Download

MIT

The Requires

 

laravel alert alex-oliveira

14/02 2017

1.0.1

1.0.1.0 http://github.com/alex-oliveira/ao-alert

Resources for Alerts with Laravel 5.* + Bootstrap 3

  Sources   Download

MIT

The Requires

 

laravel alert alex-oliveira

04/11 2015

1.0.0

1.0.0.0 http://github.com/alex-oliveira/ao-alert

Resources for Alerts with Laravel 5.1 + Bootstrap 3

  Sources   Download

MIT

The Requires

 

laravel alert alex-oliveira