New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

alex-oliveira/ao-alert

Resources for Alerts with Laravel 5.* + Bootstrap 3
71
Install
composer require alex-oliveira/ao-alert
Latest Version:1.0.1
PHP:>=5.5.9
Laravel:5
License:MIT
Last Updated:Feb 14, 2017
Links: GitHub  ·  Packagist
Maintainer: alex-oliveira

Ao-Alert

Resources for Alerts with Laravel 5.1 + Bootstrap 3

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.

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

Add new messages in session.

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

Add multiple messages.

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

Add message with multiple topics.

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

Add new custom messages in session.

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

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

Related Packages

synergitech/laravel-alert

Construct custom alerts with Laravel

103,936 6
nurmanhabib/message

Generate message alert dengan tampilan bootstrap untuk Laravel

72 0
garf/laravel-notifications

Convenient flash notifications

3,983 19
roksta/toast

Toastr notifications in laravel

2,293 3
smodav/flash

Flash messaging package for use with laravel

262 3

Version History

Version Released PHP Laravel License
1.0.1 >=5.5.9 5.* MIT
1.0.0 >=5.5.9 5.1.* MIT