Package Data | |
---|---|
Maintainer Username: | alex-oliveira |
Package Create Date: | 2015-11-02 |
Package Last Update: | 2017-02-14 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-22 03:04:41 |
Package Statistics | |
---|---|
Total Downloads: | 70 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Resources for Alerts with Laravel 5.1 + Bootstrap 3
$ composer require alex-oliveira/ao-alert
'providers' => [
/*
* Vendors Service Providers...
*/
AoAlert\AlertServiceProvider::class,
],
'aliases' => [
/*
* Vendors Facades...
*/
'Alert' => AoAlert\AlertFacade::class,
],
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');